Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/fnmatch.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -p -r1.15 -r1.16 --- src/lib/libc/gen/fnmatch.c 1999/09/16 11:44:56 1.15 +++ src/lib/libc/gen/fnmatch.c 1999/09/20 04:38:58 1.16 @@ -1,4 +1,4 @@ -/* $NetBSD: fnmatch.c,v 1.15 1999/09/16 11:44:56 lukem Exp $ */ +/* $NetBSD: fnmatch.c,v 1.16 1999/09/20 04:38:58 lukem Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94"; #else -__RCSID("$NetBSD: fnmatch.c,v 1.15 1999/09/16 11:44:56 lukem Exp $"); +__RCSID("$NetBSD: fnmatch.c,v 1.16 1999/09/20 04:38:58 lukem Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -74,11 +74,6 @@ fnmatch(pattern, string, flags) _DIAGASSERT(pattern != NULL); _DIAGASSERT(string != NULL); -#ifdef _DIAGNOSTIC - if (pattern == NULL || string == NULL) - return (FNM_NOMATCH + 1); - /* per SUS, return non zero but not FNM_NOMATCH */ -#endif for (stringstart = string;;) switch (c = *pattern++) {