diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-02 20:00:15 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-03-02 20:00:15 +0000 |
commit | 1a7ce71a4aeaa59737d7a1f5ed943e5430838664 (patch) | |
tree | ff2f733cce931beb8ecd572c27de5cea294c22da | |
parent | 97d3bc17a77f84f39949facde64b9ce764d17fa6 (diff) |
KNF
-rw-r--r-- | usr.sbin/bgpctl/bgpctl.c | 6 | ||||
-rw-r--r-- | usr.sbin/bgpd/parse.y | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c index fd21146618a..6bfb9c76d42 100644 --- a/usr.sbin/bgpctl/bgpctl.c +++ b/usr.sbin/bgpctl/bgpctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpctl.c,v 1.43 2004/03/02 19:32:43 claudio Exp $ */ +/* $OpenBSD: bgpctl.c,v 1.44 2004/03/02 20:00:14 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -243,8 +243,8 @@ main(int argc, char *argv[]) void show_summary_head(void) { - printf("%-15s %-5s %-10s %-10s %-5s %-8s %s\n", "Neighbor", "AS", "MsgRcvd", - "MsgSent", "OutQ", "Up/Down", "State"); + printf("%-15s %-5s %-10s %-10s %-5s %-8s %s\n", "Neighbor", "AS", + "MsgRcvd", "MsgSent", "OutQ", "Up/Down", "State"); } int diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 2f99598fcf4..ee81599c6cb 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.68 2004/03/02 19:45:04 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.69 2004/03/02 20:00:14 henning Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -300,7 +300,7 @@ prefix : STRING '/' number { if (asprintf(&s, "%s/%u", $1, $3) == -1) fatal(NULL); - + if (!host(s, &$$.prefix, &$$.len)) { free(s); yyerror("could not parse address \"%s/%s\"", |