summaryrefslogtreecommitdiffstats
path: root/sys/libkern/gets.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libkern/gets.c')
-rw-r--r--sys/libkern/gets.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/libkern/gets.c b/sys/libkern/gets.c
index 4efc280..89b3992 100644
--- a/sys/libkern/gets.c
+++ b/sys/libkern/gets.c
@@ -43,7 +43,6 @@ gets(char *cp, size_t size, int visible)
for (;;) {
c = cngetc() & 0177;
switch (c) {
- case -1:
case '\n':
case '\r':
*lp = '\0';
OpenPOWER on IntegriCloud