diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 17:31:13 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-03-05 17:31:13 +0000 |
commit | 101c78092f0c01561618ccdbc0743c0ee26ce618 (patch) | |
tree | 08b23ca97fb5e5c50728f17a1a43b40e6b2a368e | |
parent | c88276c17dda31294bc83a70e02e8cb1c69f5e8b (diff) |
KNF
-rw-r--r-- | usr.sbin/bgpctl/irr_parser.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/usr.sbin/bgpctl/irr_parser.c b/usr.sbin/bgpctl/irr_parser.c index 6dcce304662..18dca18ba6a 100644 --- a/usr.sbin/bgpctl/irr_parser.c +++ b/usr.sbin/bgpctl/irr_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: irr_parser.c,v 1.6 2007/03/05 17:28:59 henning Exp $ */ +/* $OpenBSD: irr_parser.c,v 1.7 2007/03/05 17:31:12 henning Exp $ */ /* * Copyright (c) 2007 Henning Brauer <henning@openbsd.org> @@ -263,7 +263,7 @@ parse_policy(char *key, char *val) while (ISWS(*p)) p++; } - + switch (st) { case PO_NONE: if (nextst != PO_PEER_KEY) @@ -292,10 +292,12 @@ parse_policy(char *key, char *val) if (!strcasecmp(tok, "and") || !strcasecmp(tok, "or") || !strcasecmp(tok, "not")) - fprintf(stderr, "compound peering " - "statements are not supported"); + fprintf(stderr, "compound " + "peering statements are " + "not supported"); else /* peer address */ - if ((pi->peer_addr = strdup(tok)) == NULL) + if ((pi->peer_addr = + strdup(tok)) == NULL) err(1, NULL); break; case PO_RTR_KEY: @@ -408,5 +410,5 @@ parse_route(char *key, char *val) if (strcmp(key, "route")) /* ignore everything else */ return (0); - return(prefixset_addmember(val)); + return (prefixset_addmember(val)); } |