Commit 1dfc5f67 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Fix mixed variable declaration with code.

parent 597f60a7
...@@ -1115,7 +1115,7 @@ static int ...@@ -1115,7 +1115,7 @@ static int
parse_kernel_route_rta(struct rtmsg *rtm, int len, struct kernel_route *route) parse_kernel_route_rta(struct rtmsg *rtm, int len, struct kernel_route *route)
{ {
int table = rtm->rtm_table; int table = rtm->rtm_table;
struct rtattr *rta= RTM_RTA(rtm);; struct rtattr *rta = RTM_RTA(rtm);
int i, is_v4; int i, is_v4;
len -= NLMSG_ALIGN(sizeof(*rtm)); len -= NLMSG_ALIGN(sizeof(*rtm));
...@@ -1340,9 +1340,9 @@ static int ...@@ -1340,9 +1340,9 @@ static int
parse_addr_rta(struct ifaddrmsg *addr, int len, struct in6_addr *res) parse_addr_rta(struct ifaddrmsg *addr, int len, struct in6_addr *res)
{ {
struct rtattr *rta; struct rtattr *rta;
int is_local = 0;
len -= NLMSG_ALIGN(sizeof(*addr)); len -= NLMSG_ALIGN(sizeof(*addr));
rta = IFA_RTA(addr); rta = IFA_RTA(addr);
int is_local = 0;
while(RTA_OK(rta, len)) { while(RTA_OK(rta, len)) {
switch(rta->rta_type) { switch(rta->rta_type) {
......
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