summaryrefslogtreecommitdiff
path: root/lib/libc/net/getprotoent.c
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2010-10-05 15:40:59 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2010-10-05 15:40:59 +0000
commitc618a8562e68d7315c7107a6ad84f2faf7cc7b9c (patch)
tree921c28561025b683feaf1dfb4333196b3b5e2639 /lib/libc/net/getprotoent.c
parent3f506a78ced7af0e7a3a085d6cd37ce62bf5f68c (diff)
Notes
Diffstat (limited to 'lib/libc/net/getprotoent.c')
-rw-r--r--lib/libc/net/getprotoent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c
index ccd5e1216489..0cfca458898f 100644
--- a/lib/libc/net/getprotoent.c
+++ b/lib/libc/net/getprotoent.c
@@ -494,7 +494,7 @@ getprotoent_r(struct protoent *pptr, char *buffer, size_t buflen,
if (rv != NS_SUCCESS) {
errno = ret_errno;
- return ((ret_errno != 0) ? ret_errno : -1);
+ return (ret_errno);
}
return (0);
}