Commit a7f9d8bf authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove GNUism.

parent a60c3757
...@@ -712,6 +712,7 @@ filter_kernel_routes(struct nlmsghdr *nh, void *data) ...@@ -712,6 +712,7 @@ filter_kernel_routes(struct nlmsghdr *nh, void *data)
int maxroutes = 0; int maxroutes = 0;
struct kernel_route *routes = NULL; struct kernel_route *routes = NULL;
int *found = NULL; int *found = NULL;
int len;
struct rtmsg *rtm; struct rtmsg *rtm;
...@@ -723,7 +724,7 @@ filter_kernel_routes(struct nlmsghdr *nh, void *data) ...@@ -723,7 +724,7 @@ filter_kernel_routes(struct nlmsghdr *nh, void *data)
found = (int*)args[3]; found = (int*)args[3];
} }
int len = nh->nlmsg_len; len = nh->nlmsg_len;
if(data && *found >= maxroutes) if(data && *found >= maxroutes)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment