]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/unix/diag.c
net: sock_diag_handler structs can be const
[karo-tx-linux.git] / net / unix / diag.c
index f0486ae9ebe6f723ca49132d0dcd92a3e97c6199..47d3002737f5dcccd222ef80f84ab9345094800b 100644 (file)
@@ -310,7 +310,7 @@ static int unix_diag_handler_dump(struct sk_buff *skb, struct nlmsghdr *h)
                return unix_diag_get_exact(skb, h, (struct unix_diag_req *)NLMSG_DATA(h));
 }
 
-static struct sock_diag_handler unix_diag_handler = {
+static const struct sock_diag_handler unix_diag_handler = {
        .family = AF_UNIX,
        .dump = unix_diag_handler_dump,
 };