summaryrefslogtreecommitdiffstats
path: root/sysif.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-02-04 23:30:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2020-02-04 23:30:57 -0800
commit022ea8cfd80b97221abfbf2ba09110c0ecef3dc6 (patch)
treefb73620e086bd59134b41e9bc11d401df9219f4f /sysif.h
parentc554db7ce82378612673e33d905b29f2d820a1a5 (diff)
downloadtxr-022ea8cfd80b97221abfbf2ba09110c0ecef3dc6.tar.gz
txr-022ea8cfd80b97221abfbf2ba09110c0ecef3dc6.tar.bz2
txr-022ea8cfd80b97221abfbf2ba09110c0ecef3dc6.zip
fstat: turn into true alias.
We can get rid of fstat_wrap entirely and make the lstat and fstat function bindings point to the same function. * parser.c (load_rcfile): Call stat_wrap instead of fstat_wrap. * sysif.c (stat_wrap): Static function becomes extern. Useless forward declaration removed. (fstat_wrap): Static function removed. (sysif_init): Bind fstat and lstat to the same function object. * sysif.h (fstat_wrap): Declaration removed. (stat_wrap): Declaration added.
Diffstat (limited to 'sysif.h')
-rw-r--r--sysif.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysif.h b/sysif.h
index f10d2da3..c2a650c0 100644
--- a/sysif.h
+++ b/sysif.h
@@ -49,7 +49,7 @@ val num_time(time_t time);
struct stat;
val stat_to_struct(struct stat st, val path);
#endif
-val fstat_wrap(val path);
+val stat_wrap(val path);
val stdio_ftell(FILE *);
int stdio_fseek(FILE *, val, int whence);
#if HAVE_GETEUID