From: Masatake YAMATO Date: Thu, 20 Jul 2023 13:00:54 +0000 (+0900) Subject: lsfd: fix a misleading parameter name X-Git-Tag: v2.40-rc1~321^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8bcca6747ee5182779be4ac79f8e7dd7a4787c0;p=thirdparty%2Futil-linux.git lsfd: fix a misleading parameter name Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-sock-xinfo.c b/misc-utils/lsfd-sock-xinfo.c index 5410d14953..f4febc11db 100644 --- a/misc-utils/lsfd-sock-xinfo.c +++ b/misc-utils/lsfd-sock-xinfo.c @@ -283,9 +283,9 @@ static void add_sock_info(struct sock_xinfo *xinfo) errx(EXIT_FAILURE, _("failed to allocate memory")); } -struct sock_xinfo *get_sock_xinfo(ino_t netns_inode) +struct sock_xinfo *get_sock_xinfo(ino_t inode) { - struct sock_xinfo **xinfo = tfind(&netns_inode, &xinfo_tree, xinfo_compare); + struct sock_xinfo **xinfo = tfind(&inode, &xinfo_tree, xinfo_compare); if (xinfo) return *xinfo; diff --git a/misc-utils/lsfd-sock.h b/misc-utils/lsfd-sock.h index d488d0f1db..61bdaeb7e3 100644 --- a/misc-utils/lsfd-sock.h +++ b/misc-utils/lsfd-sock.h @@ -67,6 +67,6 @@ struct sock_xinfo_class { void initialize_sock_xinfos(void); void finalize_sock_xinfos(void); -struct sock_xinfo *get_sock_xinfo(ino_t netns_inode); +struct sock_xinfo *get_sock_xinfo(ino_t inode); #endif /* UTIL_LINUX_LSFD_SOCK_H */