]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: delete an unnecessary cast operation
authorMasatake YAMATO <yamato@redhat.com>
Mon, 20 Feb 2023 15:10:53 +0000 (00:10 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 23 Feb 2023 09:16:08 +0000 (18:16 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-sock-xinfo.c

index 30103b50130654b1413f6ad52b3303504a1f7e8a..ed1ce310c25a0f103698bd783d9c498de150b9d4 100644 (file)
@@ -399,7 +399,7 @@ static void load_xinfo_from_proc_unix(ino_t netns_inode)
                ux->st = st;
                xstrncpy(ux->path, path, sizeof(ux->path));
 
-               add_sock_info((struct sock_xinfo *)ux);
+               add_sock_info(&ux->sock);
        }
 
  out: