summaryrefslogtreecommitdiff
path: root/Src/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/parse.c')
-rw-r--r--Src/parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Src/parse.c b/Src/parse.c
index 20649a6fb..57ff73fbe 100644
--- a/Src/parse.c
+++ b/Src/parse.c
@@ -2979,7 +2979,7 @@ static FuncDump dumps;
/**/
static int
-zwcstat(char *filename, struct stat *buf, FuncDump dumps)
+zwcstat(char *filename, struct stat *buf)
{
if (stat(filename, buf)) {
#ifdef HAVE_FSTAT
@@ -3052,7 +3052,7 @@ load_dump_file(char *dump, struct stat *sbuf, int other, int len)
#else
-#define zwcstat(f, b, d) stat(f, b)
+#define zwcstat(f, b) (!!stat(f, b))
#endif
@@ -3079,7 +3079,7 @@ try_dump_file(char *path, char *name, char *file, int *ksh)
dig = dyncat(path, FD_EXT);
wc = dyncat(file, FD_EXT);
- rd = zwcstat(dig, &std, dumps);
+ rd = zwcstat(dig, &std);
rc = stat(wc, &stc);
rn = stat(file, &stn);
@@ -3159,7 +3159,7 @@ check_dump_file(char *file, struct stat *sbuf, char *name, int *ksh)
struct stat lsbuf;
if (!sbuf) {
- if (zwcstat(file, &lsbuf, dumps))
+ if (zwcstat(file, &lsbuf))
return NULL;
sbuf = &lsbuf;
}