]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
nss: aiforaf: Format one argument/variable per line
authorPeter Krempa <pkrempa@redhat.com>
Wed, 30 Aug 2023 10:21:04 +0000 (12:21 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 4 Sep 2023 08:31:53 +0000 (10:31 +0200)
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>
tools/nss/libvirt_nss.c

index b028f286081161afaa469e885463189176c3ec04..cd2b8feb5a36bd8e6dde57cb2694e20672a46606 100644 (file)
@@ -464,13 +464,19 @@ ns_mtab methods[] = {
 };
 
 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;
     struct hostent resolved;
     char buf[1024] = { 0 };
-    int err, herr;
-    struct addrinfo hints, *res0, *res;
+    int err;
+    int herr;
+    struct addrinfo hints;
+    struct addrinfo *res0;
+    struct addrinfo *res;
     char **addrList;
 
     if ((ret = NSS_NAME(gethostbyname2)(name, af, &resolved,