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:
Frédéric Bérat 2023-04-28 14:21:32 +02:00 committed by Siddhesh Poyarekar
parent d4ad86a0e1
commit a961e16ff6

View File

@ -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