diff options
author | osdl.net!shemminger <osdl.net!shemminger> | 2004-08-31 17:45:21 +0000 |
---|---|---|
committer | osdl.net!shemminger <osdl.net!shemminger> | 2004-08-31 17:45:21 +0000 |
commit | 6dc9f016347441fbf94cf851c054b0f45ba32c1c (patch) | |
tree | 5ff63c775a44504e56c9acb54e72b651a136c350 /ip/ipaddress.c | |
parent | 1798c9d5a421f4c8136c8d887feb5c5b126643b9 (diff) |
make all filtering handles take const args.
(Logical change 1.77)
Diffstat (limited to 'ip/ipaddress.c')
-rw-r--r-- | ip/ipaddress.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 4bc63adf..01856c68 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -126,7 +126,7 @@ void print_queuelen(char *name) printf("qlen %d", ifr.ifr_qlen); } -int print_linkinfo(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) +int print_linkinfo(const struct sockaddr_nl *who, const struct nlmsghdr *n, void *arg) { FILE *fp = (FILE*)arg; struct ifinfomsg *ifi = NLMSG_DATA(n); @@ -275,7 +275,8 @@ static int flush_update(void) return 0; } -int print_addrinfo(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) +int print_addrinfo(const struct sockaddr_nl *who, const struct nlmsghdr *n, + void *arg) { FILE *fp = (FILE*)arg; struct ifaddrmsg *ifa = NLMSG_DATA(n); @@ -465,7 +466,8 @@ int print_selected_addrinfo(int ifindex, struct nlmsg_list *ainfo, FILE *fp) } -int store_nlmsg(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) +static int store_nlmsg(const struct sockaddr_nl *who, const struct nlmsghdr *n, + void *arg) { struct nlmsg_list **linfo = (struct nlmsg_list**)arg; struct nlmsg_list *h; |