diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-05 00:57:38 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 17:11:30 +0200 |
commit | 1245fbd2a8d60bab7b16b8a1d3c0122fee72f53f (patch) | |
tree | 6dcf938b1472a9b5cac35648ffb0f3d185c39590 /tcpip/rip98r.c | |
parent | 0b4425760be1f92a1f25daeb5d3dc91814a98622 (diff) |
Nuke trailing whitespace.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'tcpip/rip98r.c')
-rw-r--r-- | tcpip/rip98r.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tcpip/rip98r.c b/tcpip/rip98r.c index f8d8090..bb593cd 100644 --- a/tcpip/rip98r.c +++ b/tcpip/rip98r.c @@ -42,7 +42,7 @@ static int cmp_route(struct route_struct *route, struct in_addr addr, int bits, if (route->action == DEL_ROUTE || route->action == NEW_ROUTE) return UNMATCH_ROUTE; - + if (old_addr != new_addr) return UNMATCH_ROUTE; @@ -118,7 +118,7 @@ void receive_routes(int s) for (p = message + RIP98_HEADER; p < message + mess_len; p += RIP98_ENTRY) { memcpy((char *)&addr, (char *)p, sizeof(addr)); bits = p[4]; - metric = p[5]; + metric = p[5]; network = inet_netof(addr); @@ -140,7 +140,7 @@ void receive_routes(int s) syslog(LOG_DEBUG, " route to %s/%d metric %d\n", inet_ntoa(addr), bits, metric); metric++; - + if (metric > RIP98_INFINITY) metric = RIP98_INFINITY; @@ -157,7 +157,7 @@ void receive_routes(int s) case REPLACE_ROUTE: route->action = DEL_ROUTE; - + case ADDITIONAL_ROUTE: if (!found) { if ((new = malloc(sizeof(struct route_struct))) == NULL) { @@ -170,10 +170,10 @@ void receive_routes(int s) new->bits = bits; new->metric = metric; new->action = NEW_ROUTE; - + new->next = first_route; first_route = new; - + found = TRUE; } @@ -196,12 +196,12 @@ void receive_routes(int s) new->bits = bits; new->metric = metric; new->action = NEW_ROUTE; - + new->next = first_route; first_route = new; } } - + for (route = first_route; route != NULL; route = route->next) { if (route->action == DEL_ROUTE) { memset((char *)&rt, 0, sizeof(rt)); @@ -233,7 +233,7 @@ void receive_routes(int s) rt.rt_flags |= RTF_HOST; } else { netmask = bits2mask(route->bits); - + trg.sin_family = AF_INET; memcpy((char *)&trg.sin_addr, (char *)&netmask, sizeof(struct in_addr)); trg.sin_port = 0; |