diff options
author | Esben Norby <norby@cvs.openbsd.org> | 2007-10-01 08:35:13 +0000 |
---|---|---|
committer | Esben Norby <norby@cvs.openbsd.org> | 2007-10-01 08:35:13 +0000 |
commit | 03c8d77bc9ffc5b820afa3a04a185ec59f0834bc (patch) | |
tree | 3439464747ebff2e72064b01076939d546de7cfe /usr.sbin/ospfd/kroute.c | |
parent | e616cdcc0f1277f5f457c6d8f80bd54ac6da242d (diff) |
fix alot of whitespace problems...
Diffstat (limited to 'usr.sbin/ospfd/kroute.c')
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index b060e5b164c..f352a754929 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.53 2007/09/25 11:25:41 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.54 2007/10/01 08:35:12 norby Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -88,7 +88,7 @@ int protect_lo(void); u_int8_t prefixlen_classful(in_addr_t); void get_rtaddrs(int, struct sockaddr *, struct sockaddr **); void if_change(u_short, int, struct if_data *); -void if_newaddr(u_short, struct sockaddr_in *, struct sockaddr_in *, +void if_newaddr(u_short, struct sockaddr_in *, struct sockaddr_in *, struct sockaddr_in *); void if_announce(void *); @@ -679,7 +679,7 @@ kroute_remove(struct kroute_node *kr) inet_ntoa(kr->r.prefix), kr->r.prefixlen); return (-1); } - if (kr->next != NULL) { + if (kr->next != NULL) { if (RB_INSERT(kroute_tree, &krt, kr->next) != NULL) { log_warnx("kroute_remove failed to add %s/%u", inet_ntoa(kr->r.prefix), kr->r.prefixlen); @@ -968,16 +968,17 @@ if_change(u_short ifindex, int flags, struct if_data *ifd) } void -if_newaddr(u_short ifindex, struct sockaddr_in *ifa, struct sockaddr_in *mask, +if_newaddr(u_short ifindex, struct sockaddr_in *ifa, struct sockaddr_in *mask, struct sockaddr_in *brd) -{ +{ struct kif_node *kif; struct kif_addr *ka; - + if (ifa == NULL || ifa->sin_family != AF_INET) return; if ((kif = kif_find(ifindex)) == NULL) { - log_warnx("if_newaddr: corresponding if %i not found", ifindex); return; + log_warnx("if_newaddr: corresponding if %i not found", ifindex); + return; } if ((ka = calloc(1, sizeof(struct kif_addr))) == NULL) fatal("if_newaddr"); @@ -1506,7 +1507,7 @@ add: " not found"); return (-1); } - /* + /* * last route is getting removed request the * ospf route from the RDE to insert instead */ |