diff options
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; |