mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 14:50:05 +00:00
sunrpc/netname.c: fix warn unused result
Fix unused result warnings, detected when _FORTIFY_SOURCE is enabled in glibc. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
d4ad86a0e1
commit
a961e16ff6
@ -96,7 +96,8 @@ host2netname (char netname[MAXNETNAMELEN + 1], const char *host,
|
||||
else
|
||||
{
|
||||
domainname[0] = 0;
|
||||
getdomainname (domainname, MAXHOSTNAMELEN);
|
||||
if (getdomainname (domainname, MAXHOSTNAMELEN))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user