about summary refs log tree commit diff
path: root/Src/parse.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-04-24 18:39:02 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-04-24 18:39:02 +0000
commit38d2734e0a3f3935f99c0aa1b439abc060e0974a (patch)
tree92dcf78a9509b5e0ce961a5b3af8a194eabda2e5 /Src/parse.c
parent813cb26e40d34cf87093818e42d8fedf86a0ae9a (diff)
downloadzsh-38d2734e0a3f3935f99c0aa1b439abc060e0974a.tar.gz
zsh-38d2734e0a3f3935f99c0aa1b439abc060e0974a.tar.xz
zsh-38d2734e0a3f3935f99c0aa1b439abc060e0974a.zip
Remove excess argument of zwcstat()
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;
     }