netlink: let nlmsg and nla functions take pointer-to-const args
authorJan Engelhardt <jengelh@medozas.de>
Tue, 16 Nov 2010 17:52:32 +0000 (09:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2010 17:52:32 +0000 (09:52 -0800)
commit3654654f7aa79a37dde130afb7409c55b11807e7
tree4e65c0d211a6cc748509b7f3b2da7c45b05d3266
parent9d82ca98f71fd686ef2f3017c5e3e6a4871b6e46
netlink: let nlmsg and nla functions take pointer-to-const args

The changed functions do not modify the NL messages and/or attributes
at all. They should use const (similar to strchr), so that callers
which have a const nlmsg/nlattr around can make use of them without
casting.

While at it, constify a data array.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
lib/nlattr.c