summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-05-01 20:22:01 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-05-01 20:22:01 +0000
commit2a707991746fe35ae31bb00ac6f5a631f2a7b727 (patch)
treefb87ce440023e870e2576037a2e6ef5cfde76bc4 /lib/libc
parent4873e0ae1050974114863928dd5e1137b31a68e5 (diff)
add missing enumeration case to select to kill gcc warning
millert@ ok
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getgrent.c5
-rw-r--r--lib/libc/gen/getpwent.c5
2 files changed, 8 insertions, 2 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;
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c
index 39c3685e438..724b7ff855d 100644
--- a/lib/libc/gen/getpwent.c
+++ b/lib/libc/gen/getpwent.c
@@ -33,7 +33,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: getpwent.c,v 1.28 2002/11/21 21:25:19 millert Exp $";
+static char rcsid[] = "$OpenBSD: getpwent.c,v 1.29 2003/05/01 20:22:00 avsm Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -422,6 +422,9 @@ again:
goto again;
}
break;
+ case YPMODE_NONE:
+ /* NOTREACHED */
+ break;
}
__ypline[datalen] = '\0';