From 1a7ce71a4aeaa59737d7a1f5ed943e5430838664 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 2 Mar 2004 20:00:15 +0000 Subject: KNF --- usr.sbin/bgpctl/bgpctl.c | 6 +++--- 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 @@ -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 @@ -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\"", -- cgit v1.2.3