X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ip%2Frtmon.c;h=7373443f2f8ab18380ac21534d41ba492c217f9c;hb=25c6339b223f17d1603702c0c87f06b252bb4949;hp=7d2405d724a63ea81e78d2c8dbadcdabe375d1d2;hpb=9d16a1de1faa19278fe90838a9d4f62641ac5959;p=mirror_iproute2.git diff --git a/ip/rtmon.c b/ip/rtmon.c index 7d2405d7..7373443f 100644 --- a/ip/rtmon.c +++ b/ip/rtmon.c @@ -43,7 +43,7 @@ static void write_stamp(FILE *fp) fwrite((void *)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp); } -static int dump_msg(const struct sockaddr_nl *who, struct rtnl_ctrl_data *ctrl, +static int dump_msg(struct rtnl_ctrl_data *ctrl, struct nlmsghdr *n, void *arg) { FILE *fp = (FILE *)arg; @@ -55,10 +55,9 @@ static int dump_msg(const struct sockaddr_nl *who, struct rtnl_ctrl_data *ctrl, return 0; } -static int dump_msg2(const struct sockaddr_nl *who, - struct nlmsghdr *n, void *arg) +static int dump_msg2(struct nlmsghdr *n, void *arg) { - return dump_msg(who, NULL, n, arg); + return dump_msg(NULL, n, arg); } static void usage(void)