summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-01-23 23:25:01 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-01-23 23:25:01 +0100
commitd2924a76c315a4cd0f4649511c55b08422b06342 (patch)
tree834c92f817e54fbde4e0ef7994fef8e148e782c4 /libc
parentb448835995a7459e3f2e0f0cdce0e51b95ac7662 (diff)
getprotoent_r: use correct define for return value
Doesn't correctly set result=NULL on error or EOF. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc')
-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;
}