=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/find/option.c,v retrieving revision 1.16 retrieving revision 1.17 diff -c -r1.16 -r1.17 *** src/usr.bin/find/option.c 2003/06/26 07:27:29 1.16 --- src/usr.bin/find/option.c 2003/07/02 21:04:10 1.17 *************** *** 1,4 **** ! /* $OpenBSD: option.c,v 1.16 2003/06/26 07:27:29 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 --- 1,4 ---- ! /* $OpenBSD: option.c,v 1.17 2003/07/02 21:04:10 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993 *************** *** 34,40 **** #ifndef lint /*static char sccsid[] = "from: @(#)option.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: option.c,v 1.16 2003/06/26 07:27:29 deraadt Exp $"; #endif /* not lint */ #include --- 34,40 ---- #ifndef lint /*static char sccsid[] = "from: @(#)option.c 8.1 (Berkeley) 6/6/93";*/ ! static char rcsid[] = "$OpenBSD: option.c,v 1.17 2003/07/02 21:04:10 deraadt Exp $"; #endif /* not lint */ #include *************** *** 49,54 **** --- 49,56 ---- #include "find.h" #include "extern.h" + int typecompare(const void *, const void *); + /* NB: the following table must be sorted lexically. */ static OPTION options[] = { { "!", N_NOT, c_not, O_ZERO }, *************** *** 144,150 **** option(char *name) { OPTION tmp; - int typecompare(const void *, const void *); tmp.name = name; return ((OPTION *)bsearch(&tmp, options, --- 146,151 ----