=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/find/function.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/find/function.c 1998/09/26 09:04:43 1.12 --- src/usr.bin/find/function.c 1999/03/17 17:36:30 1.13 *************** *** 1,4 **** ! /* $OpenBSD: function.c,v 1.12 1998/09/26 09:04:43 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 --- 1,4 ---- ! /* $OpenBSD: function.c,v 1.13 1999/03/17 17:36:30 espie Exp $ */ /*- * Copyright (c) 1990, 1993 *************** *** 38,44 **** #ifndef lint /*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: function.c,v 1.12 1998/09/26 09:04:43 deraadt Exp $"; #endif /* not lint */ #include --- 38,44 ---- #ifndef lint /*static char sccsid[] = "from: @(#)function.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: function.c,v 1.13 1999/03/17 17:36:30 espie Exp $"; #endif /* not lint */ #include *************** *** 1170,1175 **** --- 1170,1177 ---- #ifdef S_IFWHT case 'W': mask = S_IFWHT; + if ((ftsoptions & FTS_WHITEOUT) == 0) + warnx("-type W without -W is a no-op"); break; #endif case 'b':