From 2ac8d1a377bffc6942f86210915c07e85c6d8de1 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Tue, 21 Feb 2023 00:10:53 +0900 Subject: [PATCH] lsfd: delete an unnecessary cast operation Signed-off-by: Masatake YAMATO --- misc-utils/lsfd-sock-xinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/lsfd-sock-xinfo.c b/misc-utils/lsfd-sock-xinfo.c index 30103b5013..ed1ce310c2 100644 --- a/misc-utils/lsfd-sock-xinfo.c +++ b/misc-utils/lsfd-sock-xinfo.c @@ -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: -- 2.47.2