X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/202dd4ce070b42fff294eb5621255250845cdb3b..b1a11722df79ff28a2704e918ef0c3639d1db0d3:/usr/src/usr.bin/find/option.c diff --git a/usr/src/usr.bin/find/option.c b/usr/src/usr.bin/find/option.c index 376d970906..fea1d28b4f 100644 --- a/usr/src/usr.bin/find/option.c +++ b/usr/src/usr.bin/find/option.c @@ -9,7 +9,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)option.c 5.2 (Berkeley) %G%"; +static char sccsid[] = "@(#)option.c 5.3 (Berkeley) %G%"; #endif /* not lint */ #include @@ -43,8 +43,8 @@ OPTION options[] = { "!", T_NOT, c_not, O_ZERO, "(", T_OPENPAREN, c_openparen, O_ZERO, ")", T_CLOSEPAREN, c_closeparen, O_ZERO, - "a", T_AND, (PLAN *(*)())-1,O_NONE|O_OLD, - "and", T_AND, (PLAN *(*)())-1,O_NONE|O_NEW, + "a", T_AND, NULL, O_NONE|O_OLD, + "and", T_AND, NULL, O_NONE|O_NEW, "atime", T_ATIME, c_atime, O_ARGV, "ctime", T_CTIME, c_ctime, O_ARGV, "depth", T_DEPTH, c_depth, O_ZERO|O_OLD, @@ -113,6 +113,9 @@ find_create(argvp) } switch(p->flags&O_MASK) { + case O_NONE: + new = NULL; + break; case O_ZERO: new = (p->create)(); break;