summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
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';