Module Name: src Committed By: dholland Date: Fri Sep 7 04:50:35 UTC 2012
Modified Files: src/lib/libc/gen: getpwent.c Log Message: Disable bogus _DIAGASSERT. To generate a diff of this commit: cvs rdiff -u -r1.79 -r1.80 src/lib/libc/gen/getpwent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/getpwent.c diff -u src/lib/libc/gen/getpwent.c:1.79 src/lib/libc/gen/getpwent.c:1.80 --- src/lib/libc/gen/getpwent.c:1.79 Thu Mar 29 14:43:58 2012 +++ src/lib/libc/gen/getpwent.c Fri Sep 7 04:50:35 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: getpwent.c,v 1.79 2012/03/29 14:43:58 christos Exp $ */ +/* $NetBSD: getpwent.c,v 1.80 2012/09/07 04:50:35 dholland Exp $ */ /*- * Copyright (c) 1997-2000, 2004-2005 The NetBSD Foundation, Inc. @@ -88,7 +88,7 @@ #if 0 static char sccsid[] = "@(#)getpwent.c 8.2 (Berkeley) 4/27/95"; #else -__RCSID("$NetBSD: getpwent.c,v 1.79 2012/03/29 14:43:58 christos Exp $"); +__RCSID("$NetBSD: getpwent.c,v 1.80 2012/09/07 04:50:35 dholland Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -1294,7 +1294,7 @@ _nis_pwscan(int *retval, struct passwd * data = NULL; rv = NS_NOTFOUND; - _DIAGASSERT(state->maptype > 0 && state->maptype < sizeof(map_arr)/sizeof(const char*)); + /*_DIAGASSERT(state->maptype > 0 && state->maptype < sizeof(map_arr)/sizeof(const char*));*/ /* search map */ nisr = yp_match(state->domain, map_arr[state->maptype], buffer, (int)strlen(buffer),