summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98r.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 15:34:56 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:30:13 +0200
commitf76e0b330f0be28f9f3af3073904ede3a34d48f5 (patch)
tree157597d534cf357a8bfddb1822a41902b4eba93b /tcpip/rip98r.c
parent406b11281cf451927ac348f0639161d2f084743f (diff)
Reformat consistently. Strictly whitespace changes only.
Indentation by tabs only. Move case labels in switches are on the same level as the switch keyword. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'tcpip/rip98r.c')
-rw-r--r--tcpip/rip98r.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/tcpip/rip98r.c b/tcpip/rip98r.c
index bb593cd..b1f283c 100644
--- a/tcpip/rip98r.c
+++ b/tcpip/rip98r.c
@@ -151,37 +151,37 @@ void receive_routes(int s)
switch (cmp_route(route, addr, bits, metric)) {
- case NO_ROUTE:
- matched = TRUE;
- break;
-
- case REPLACE_ROUTE:
- route->action = DEL_ROUTE;
-
- case ADDITIONAL_ROUTE:
- if (!found) {
- if ((new = malloc(sizeof(struct route_struct))) == NULL) {
- if (logging)
- syslog(LOG_ERR, "out of memory\n");
- return;
- }
-
- new->addr = addr;
- new->bits = bits;
- new->metric = metric;
- new->action = NEW_ROUTE;
-
- new->next = first_route;
- first_route = new;
-
- found = TRUE;
+ case NO_ROUTE:
+ matched = TRUE;
+ break;
+
+ case REPLACE_ROUTE:
+ route->action = DEL_ROUTE;
+
+ case ADDITIONAL_ROUTE:
+ if (!found) {
+ if ((new = malloc(sizeof(struct route_struct))) == NULL) {
+ if (logging)
+ syslog(LOG_ERR, "out of memory\n");
+ return;
}
- matched = TRUE;
- break;
+ new->addr = addr;
+ new->bits = bits;
+ new->metric = metric;
+ new->action = NEW_ROUTE;
- default:
- break;
+ new->next = first_route;
+ first_route = new;
+
+ found = TRUE;
+ }
+
+ matched = TRUE;
+ break;
+
+ default:
+ break;
}
}