diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-01-23 23:25:01 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-01-23 23:25:01 +0100 |
commit | d2924a76c315a4cd0f4649511c55b08422b06342 (patch) | |
tree | 834c92f817e54fbde4e0ef7994fef8e148e782c4 /libc | |
parent | b448835995a7459e3f2e0f0cdce0e51b95ac7662 (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.c | 2 |
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; } |