From: Masatake YAMATO Date: Thu, 2 Feb 2023 16:03:13 +0000 (+0900) Subject: lsfd: remove an unused field from struct sock_xinfo_class X-Git-Tag: v2.39-rc1~83^2~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3166b0c5989f0d36138d5cc36da89906e159efdb;p=thirdparty%2Futil-linux.git lsfd: remove an unused field from struct sock_xinfo_class Signed-off-by: Masatake YAMATO --- diff --git a/misc-utils/lsfd-sock-xinfo.c b/misc-utils/lsfd-sock-xinfo.c index edc975f5c8..d4a5563c05 100644 --- a/misc-utils/lsfd-sock-xinfo.c +++ b/misc-utils/lsfd-sock-xinfo.c @@ -336,7 +336,6 @@ static bool unix_fill_column(struct proc *proc __attribute__((__unused__)), } static const struct sock_xinfo_class unix_xinfo_class = { - .class = "unix", .get_name = unix_get_name, .get_type = unix_get_type, .get_state = unix_get_state, @@ -583,7 +582,6 @@ static bool tcp_get_listening(struct sock_xinfo *sock_xinfo, define_fill_column_func(tcp, TCP) static const struct sock_xinfo_class tcp_xinfo_class = { - .class = "tcp", .get_name = tcp_get_name, .get_type = tcp_get_type, .get_state = tcp_get_state, @@ -711,7 +709,6 @@ static char *udp_get_type(struct sock_xinfo *sock_xinfo __attribute__((__unused_ define_fill_column_func(udp, UDP) static const struct sock_xinfo_class udp_xinfo_class = { - .class = "udp", .get_name = udp_get_name, .get_type = udp_get_type, .get_state = tcp_get_state, diff --git a/misc-utils/lsfd-sock.h b/misc-utils/lsfd-sock.h index 00acf3d41a..d488d0f1db 100644 --- a/misc-utils/lsfd-sock.h +++ b/misc-utils/lsfd-sock.h @@ -46,7 +46,6 @@ struct sock { }; struct sock_xinfo_class { - const char *class; /* Methods for filling socket related columns */ char * (*get_name)(struct sock_xinfo *, struct sock *); char * (*get_type)(struct sock_xinfo *, struct sock *);