]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: delete a redundant cast operation
authorMasatake YAMATO <yamato@redhat.com>
Tue, 24 Jan 2023 22:30:31 +0000 (07:30 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 2 Feb 2023 14:19:54 +0000 (23:19 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-sock-xinfo.c

index 955658bedbf5b85dfe6b57b64b5931185a81f17b..5f48a46a3c3a2acde04851e2104f6f8b8a192a33 100644 (file)
@@ -553,7 +553,7 @@ static bool tcp_get_listening(struct sock_xinfo *sock_xinfo,
                unsigned int p;                                         \
                bool has_lport = false;                                 \
                                                                        \
-               if (inet_fill_column(proc, (struct inet_xinfo *)sock_xinfo, sock, ln, \
+               if (inet_fill_column(proc, inet, sock, ln, \
                                     column_id, column_index, str))     \
                        return true;                                    \
                                                                        \