]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsfd: remove an unused field from struct sock_xinfo_class
authorMasatake YAMATO <yamato@redhat.com>
Thu, 2 Feb 2023 16:03:13 +0000 (01:03 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Sun, 5 Feb 2023 22:12:58 +0000 (07:12 +0900)
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
misc-utils/lsfd-sock-xinfo.c
misc-utils/lsfd-sock.h

index edc975f5c848d8cf14b5138ebcbeeb2a75f80e88..d4a5563c05d2bb8857a27bdae948e5dd310c7c4d 100644 (file)
@@ -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,
index 00acf3d41aabbad5cc77ab47ca0ad1e4f59ad3bc..d488d0f1db3edec92e04418951c3794e81fd7756 100644 (file)
@@ -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 *);