diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-02-02 19:08:43 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-02-02 19:08:43 +0000 |
commit | edb3ea6975f6433dca5a6198ed41066adbc60b5f (patch) | |
tree | 85c203ec3a0a2d8911e67655d6ffc91e74542be6 /usr.sbin/ospfctl | |
parent | 0a54a2a5d4909a27037d246906b5a02c25c65d7f (diff) |
KNF
Diffstat (limited to 'usr.sbin/ospfctl')
-rw-r--r-- | usr.sbin/ospfctl/ospfctl.c | 12 | ||||
-rw-r--r-- | usr.sbin/ospfctl/parser.c | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c index a6281450315..1879a7331bb 100644 --- a/usr.sbin/ospfctl/ospfctl.c +++ b/usr.sbin/ospfctl/ospfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfctl.c,v 1.3 2005/02/02 18:52:32 henning Exp $ */ +/* $OpenBSD: ospfctl.c,v 1.4 2005/02/02 19:08:42 henning Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -73,7 +73,7 @@ imsg_event_add(struct imsgbuf *i) int main(int argc, char *argv[]) -{ +{ struct sockaddr_un sun; struct parse_result *res; struct imsg imsg; @@ -207,7 +207,7 @@ show_interface_msg(struct imsg *imsg) inet_ntoa(iface->addr), mask2prefixlen(iface->mask)); printf("Area %s\n", inet_ntoa(iface->area)); - printf(" Router ID %s, network type %s, cost: %d\n", + printf(" Router ID %s, network type %s, cost: %d\n", inet_ntoa(iface->rtr_id), print_if_type(iface->type), iface->metric); printf(" Transmit delay is %d sec, state %s, priority %d\n", @@ -223,7 +223,7 @@ show_interface_msg(struct imsg *imsg) "hello %d, dead %d, wait %d, retransmit %d\n", iface->hello_interval, iface->dead_interval, iface->dead_interval, iface->rxmt_interval); - if (iface->hello_timer < 0) + if (iface->hello_timer < 0) printf(" Hello timer not running\n"); else printf(" Hello timer due in %s\n", @@ -238,7 +238,7 @@ show_interface_msg(struct imsg *imsg) break; } - return (0); + return (0); } const char * @@ -471,7 +471,7 @@ show_database_msg(struct imsg *imsg) break; } - return (0); + return (0); } int diff --git a/usr.sbin/ospfctl/parser.c b/usr.sbin/ospfctl/parser.c index deff595aab7..02c9d8762bf 100644 --- a/usr.sbin/ospfctl/parser.c +++ b/usr.sbin/ospfctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.2 2005/01/28 17:26:05 norby Exp $ */ +/* $OpenBSD: parser.c,v 1.3 2005/02/02 19:08:42 henning Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -217,7 +217,7 @@ show_valid_args(const struct token table[]) case KEYWORD: case FLAG: fprintf(stderr, " %s\n", table[i].keyword); - break; + break; case ADDRESS: fprintf(stderr, " <address>\n"); break; |