]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: cosmetic change, delete whitespaces
authorMasatake YAMATO <yamato@redhat.com>
Sat, 1 Oct 2022 03:04:42 +0000 (12:04 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sat, 1 Oct 2022 20:18:20 +0000 (05:18 +0900)
misc-utils/lsfd-sock-xinfo.c
misc-utils/lsfd-sock.c

index d675c49705af7c356d776a33f6d19ff176c05216..a60810a66d908c36baa6233482af8f0055ca7796 100644 (file)
@@ -75,9 +75,9 @@ static void load_sock_xinfo_no_nsswitch(ino_t netns)
 
 static void load_sock_xinfo_with_fd(int fd, ino_t netns)
 {
-       if (setns (fd, CLONE_NEWNET) == 0) {
+       if (setns(fd, CLONE_NEWNET) == 0) {
                load_sock_xinfo_no_nsswitch(netns);
-               setns (self_netns_fd, CLONE_NEWNET);
+               setns(self_netns_fd, CLONE_NEWNET);
        }
 }
 
@@ -148,11 +148,11 @@ void initialize_sock_xinfos(void)
        ul_unref_path(pc);
 }
 
-static void free_sock_xinfo (void *node)
+static void free_sock_xinfo(void *node)
 {
        struct sock_xinfo *xinfo = node;
        if (xinfo->class->free)
-               xinfo->class->free (xinfo);
+               xinfo->class->free(xinfo);
        free(node);
 }
 
@@ -351,7 +351,7 @@ static void load_xinfo_from_proc_unix(ino_t netns_inode)
 
        if (fgets(line, sizeof(line), unix_fp) == NULL)
                goto out;
-       if (! (line[0] == 'N' && line[1] == 'u' && line[2] == 'm'))
+       if (!(line[0] == 'N' && line[1] == 'u' && line[2] == 'm'))
                /* Unexpected line */
                goto out;
 
index d1ed26d8c5549f184dda18b081a642a9e205950b..1c9d8bf202941053a975c8f191093cf44c65eb3b 100644 (file)
@@ -56,7 +56,7 @@ static bool sock_fill_column(struct proc *proc __attribute__((__unused__)),
        case COL_NAME:
                if (sock->xinfo
                    && sock->xinfo->class && sock->xinfo->class->get_name) {
-                       str = sock->xinfo->class->get_name (sock->xinfo, sock);
+                       str = sock->xinfo->class->get_name(sock->xinfo, sock);
                        if (str)
                                break;
                }