summaryrefslogtreecommitdiffstats
path: root/ip/iprule.c
diff options
context:
space:
mode:
authorosdl.net!shemminger <osdl.net!shemminger>2004-08-31 17:45:21 +0000
committerosdl.net!shemminger <osdl.net!shemminger>2004-08-31 17:45:21 +0000
commit6dc9f016347441fbf94cf851c054b0f45ba32c1c (patch)
tree5ff63c775a44504e56c9acb54e72b651a136c350 /ip/iprule.c
parent1798c9d5a421f4c8136c8d887feb5c5b126643b9 (diff)
make all filtering handles take const args.
(Logical change 1.77)
Diffstat (limited to 'ip/iprule.c')
-rw-r--r--ip/iprule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ip/iprule.c b/ip/iprule.c
index 0edba5b5..a8bafc77 100644
--- a/ip/iprule.c
+++ b/ip/iprule.c
@@ -42,7 +42,8 @@ static void usage(void)
exit(-1);
}
-int print_rule(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
+static int print_rule(const struct sockaddr_nl *who, const struct nlmsghdr *n,
+ void *arg)
{
FILE *fp = (FILE*)arg;
struct rtmsg *r = NLMSG_DATA(n);