diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/getproto.c | 2 | ||||
-rw-r--r-- | lib/libc/net/getprotoent.c | 2 | ||||
-rw-r--r-- | lib/libc/net/getprotoname.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/getproto.c b/lib/libc/net/getproto.c index cb3a3ed..b923edf 100644 --- a/lib/libc/net/getproto.c +++ b/lib/libc/net/getproto.c @@ -123,7 +123,7 @@ getprotobynumber_r(int proto, struct protoent *pptr, char *buffer, if (rv != NS_SUCCESS) { errno = ret_errno; - return ((ret_errno != 0) ? ret_errno : -1); + return (ret_errno); } return (0); } diff --git a/lib/libc/net/getprotoent.c b/lib/libc/net/getprotoent.c index ccd5e12..0cfca45 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); } diff --git a/lib/libc/net/getprotoname.c b/lib/libc/net/getprotoname.c index 08822c1..22c5759 100644 --- a/lib/libc/net/getprotoname.c +++ b/lib/libc/net/getprotoname.c @@ -131,7 +131,7 @@ getprotobyname_r(const char *name, struct protoent *pptr, char *buffer, if (rv != NS_SUCCESS) { errno = ret_errno; - return ((ret_errno != 0) ? ret_errno : -1); + return (ret_errno); } return (0); } |