mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03:00
nss: aiforaf: Remove unused 'ret' variable
The variable is set but never actually used. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
This commit is contained in:
parent
e861bb23ea
commit
ad10701e79
@ -469,7 +469,6 @@ aiforaf(const char *name,
|
||||
struct addrinfo *pai,
|
||||
struct addrinfo **aip)
|
||||
{
|
||||
int ret;
|
||||
struct hostent resolved;
|
||||
char buf[1024] = { 0 };
|
||||
int err;
|
||||
@ -479,9 +478,9 @@ aiforaf(const char *name,
|
||||
struct addrinfo *res;
|
||||
char **addrList;
|
||||
|
||||
if ((ret = NSS_NAME(gethostbyname2)(name, af, &resolved,
|
||||
buf, sizeof(buf),
|
||||
&err, &herr)) != NS_SUCCESS)
|
||||
if (NSS_NAME(gethostbyname2)(name, af, &resolved,
|
||||
buf, sizeof(buf),
|
||||
&err, &herr) != NS_SUCCESS)
|
||||
return;
|
||||
|
||||
addrList = resolved.h_addr_list;
|
||||
|
Loading…
Reference in New Issue
Block a user