summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravsm <avsm@openbsd.org>2003-05-01 20:22:00 +0000
committeravsm <avsm@openbsd.org>2003-05-01 20:22:00 +0000
commit497d14cce0b48dbf391a96a1f61c23ae52edf26e (patch)
tree0d599951a0a9d8fb3f195ad41d1e04d287a356ac
parenttypos; (diff)
downloadwireguard-openbsd-497d14cce0b48dbf391a96a1f61c23ae52edf26e.tar.xz
wireguard-openbsd-497d14cce0b48dbf391a96a1f61c23ae52edf26e.zip
add missing enumeration case to select to kill gcc warning
millert@ ok
-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';