diff options
| author | Hajimu UMEMOTO <ume@FreeBSD.org> | 2010-10-30 10:30:49 +0000 |
|---|---|---|
| committer | Hajimu UMEMOTO <ume@FreeBSD.org> | 2010-10-30 10:30:49 +0000 |
| commit | 9f0a69add8ec73de055f8f52875fd86ad50434e2 (patch) | |
| tree | c950f77c6ae70d0b10e479551e7f80d5516d76a5 /lib/libc/net/getprotoname.c | |
| parent | cbc62ff26d5f7089012b99f3b242f0d3dc1a8e6a (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/getprotoname.c')
| -rw-r--r-- | lib/libc/net/getprotoname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getprotoname.c b/lib/libc/net/getprotoname.c index 08822c18d4d8..22c57594f6db 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); } |
