[PATCH 4/8] nss: aiforaf: Format one argument/variable per line

Peter Krempa posted 8 patches 2 years, 5 months ago
[PATCH 4/8] nss: aiforaf: Format one argument/variable per line
Posted by Peter Krempa 2 years, 5 months ago
Break up the argument and variable declarations to the preferred style.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 tools/nss/libvirt_nss.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tools/nss/libvirt_nss.c b/tools/nss/libvirt_nss.c
index b028f28608..cd2b8feb5a 100644
--- a/tools/nss/libvirt_nss.c
+++ b/tools/nss/libvirt_nss.c
@@ -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,
-- 
2.41.0
Re: [PATCH 4/8] nss: aiforaf: Format one argument/variable per line
Posted by Kristina Hanicova 2 years, 5 months ago
On Wed, Aug 30, 2023 at 1:59 PM Peter Krempa <pkrempa@redhat.com> wrote:

> Break up the argument and variable declarations to the preferred style.
>
> Signed-off-by: Peter Krempa <pkrempa@redhat.com>
> ---
>  tools/nss/libvirt_nss.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
>

Reviewed-by: Kristina Hanicova <khanicov@redhat.com>

Kristina