mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 21:01:13 +00:00
nss: aiforaf: Format one argument/variable per line
Break up the argument and variable declarations to the preferred style. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
This commit is contained in:
parent
6caf51d527
commit
e861bb23ea
@ -464,13 +464,19 @@ ns_mtab methods[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
aiforaf(const char *name, int af, struct addrinfo *pai, struct addrinfo **aip)
|
aiforaf(const char *name,
|
||||||
|
int af,
|
||||||
|
struct addrinfo *pai,
|
||||||
|
struct addrinfo **aip)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct hostent resolved;
|
struct hostent resolved;
|
||||||
char buf[1024] = { 0 };
|
char buf[1024] = { 0 };
|
||||||
int err, herr;
|
int err;
|
||||||
struct addrinfo hints, *res0, *res;
|
int herr;
|
||||||
|
struct addrinfo hints;
|
||||||
|
struct addrinfo *res0;
|
||||||
|
struct addrinfo *res;
|
||||||
char **addrList;
|
char **addrList;
|
||||||
|
|
||||||
if ((ret = NSS_NAME(gethostbyname2)(name, af, &resolved,
|
if ((ret = NSS_NAME(gethostbyname2)(name, af, &resolved,
|
||||||
|
Loading…
Reference in New Issue
Block a user