summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getgrent.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/getgrent.c')
-rw-r--r--lib/libc/gen/getgrent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/gen/getgrent.c b/lib/libc/gen/getgrent.c
index a4f43435258..c1d6f2df056 100644
--- a/lib/libc/gen/getgrent.c
+++ b/lib/libc/gen/getgrent.c
@@ -33,7 +33,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getgrent.c,v 1.17 2002/07/06 03:08:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: getgrent.c,v 1.18 2003/05/01 20:22:00 avsm Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -356,6 +356,9 @@ grscan(search, gid, name, p_gr, gs)
continue;
}
break;
+ case YPMODE_NONE:
+ /* NOTREACHED */
+ break;
}
line[datalen] = '\0';
bp = line;