summaryrefslogtreecommitdiffstats
path: root/parser.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-01-15 23:03:34 -0800
committerKaz Kyheku <kaz@kylheku.com>2020-01-15 23:03:34 -0800
commitc77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff (patch)
treea8ceeee756e3d07e9e9032d853095b61cd26ba75 /parser.c
parentfa62e08dc6e915422c0dd99c18e050182e5e694f (diff)
downloadtxr-c77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff.tar.gz
txr-c77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff.tar.bz2
txr-c77bf6fb483c5bce7d5c5fc13fa04471d12ee2ff.zip
sysif: fix inappropriate use of w_ convention.
Some functions in utf8.c have w_ prefixes. They are wide character wrappers for functions that take multi-byte string inputs. The prefix is being inappropriately used in the names of a few sysif functions that should be named _wrap. * sysif.c (w_stat, w_lstat, w_fstat): Rename to do_stat, do_lstat and do_fstat, respectively. These are callbacks used with stat_impl. (statp, statl, statf): Rename to stat_wrap, lstat_wrap and fstat_wrap, following existing convention. Additionally, stat_wrap becomes static since nothing outside this file calls it. (sysif_init): Follow renames of statp, statl and statf. * sysif.h (statp): Declaration removed. (statf): Renamed to fstat_wrap. * parser.c (load_rcfile): Follow statf rename.
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index 0752cf45..7c40b5d7 100644
--- a/parser.c
+++ b/parser.c
@@ -798,7 +798,7 @@ static void load_rcfile(val name)
open_txr_file(name, &lisp_p, &resolved_name, &stream);
if (stream) {
- if (!funcall1(path_private_to_me_p, statf(stream))) {
+ if (!funcall1(path_private_to_me_p, fstat_wrap(stream))) {
format(std_output,
lit("** possible security problem: ~a is writable to others\n"),
name, nao);