mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
Remove excess argument of zwcstat()
This commit is contained in:
parent
813cb26e40
commit
38d2734e0a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user