Browse Source

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>
Bernhard Reutner-Fischer 14 years ago
parent
commit
d2924a76c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/inet/getproto.c

+ 1 - 1
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;
     }