summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/inet/getproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c
index c297a6549..bf7c09371 100644
--- a/libc/inet/getproto.c
+++ b/libc/inet/getproto.c
@@ -144,7 +144,7 @@ int getprotoent_r(struct protoent *result_buf,
}
again:
if ((p = fgets(line, BUFSIZ, protof)) == NULL) {
- rv=TRY_AGAIN;
+ rv=ENOENT;
goto DONE;
}