summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-03-31 12:46:56 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-03-31 12:46:56 +0000
commitbde6eb8ceec63f9033a16cd79a08038c3f1c625f (patch)
tree057fafa86cdb9757e23b0265205f000b4fa02745
parentd6dc2823cd48bec4bfa8b04c3200f7ad0abe18fa (diff)
some KNF, partially pt out by rivo nurges <rix@estpak.ee>
-rw-r--r--usr.sbin/bgpctl/bgpctl.c6
-rw-r--r--usr.sbin/bgpctl/irr_asset.c3
-rw-r--r--usr.sbin/bgpctl/parser.c8
3 files changed, 8 insertions, 9 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 7d7a6ead337..fcf3d8f508b 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.119 2007/03/28 12:34:08 henning Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.120 2007/03/31 12:46:55 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -214,8 +214,8 @@ main(int argc, char *argv[])
type = IMSG_CTL_SHOW_RIB_PREFIX;
}
if (res->community.as != 0 && res->community.type != 0) {
- memcpy(&ribreq.community, &res->community,
- sizeof(res->community));
+ memcpy(&ribreq.community, &res->community,
+ sizeof(res->community));
type = IMSG_CTL_SHOW_RIB_COMMUNITY;
}
memcpy(&ribreq.neighbor, &neighbor,
diff --git a/usr.sbin/bgpctl/irr_asset.c b/usr.sbin/bgpctl/irr_asset.c
index 6d1ff371646..f9c25246c2c 100644
--- a/usr.sbin/bgpctl/irr_asset.c
+++ b/usr.sbin/bgpctl/irr_asset.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_asset.c,v 1.6 2007/03/06 16:45:34 henning Exp $ */
+/* $OpenBSD: irr_asset.c,v 1.7 2007/03/31 12:46:55 henning Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -149,7 +149,6 @@ asset_membertype(char *name)
return (T_AUTNUM);
return (T_UNKNOWN);
-
}
void
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c
index d894bf7eeb0..710b07cb74a 100644
--- a/usr.sbin/bgpctl/parser.c
+++ b/usr.sbin/bgpctl/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.41 2007/03/28 12:34:08 henning Exp $ */
+/* $OpenBSD: parser.c,v 1.42 2007/03/31 12:46:55 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -136,7 +136,7 @@ static const struct token t_show_rib[] = {
{ ASTYPE, "transit-as", AS_TRANSIT, t_show_as},
{ ASTYPE, "peer-as", AS_PEER, t_show_as},
{ ASTYPE, "empty-as", AS_EMPTY, t_show_rib},
- { KEYWORD, "community", NONE, t_show_community},
+ { KEYWORD, "community", NONE, t_show_community},
{ FLAG, "detail", F_CTL_DETAIL, t_show_rib},
{ FLAG, "in", F_CTL_ADJ_IN, t_show_rib},
{ FLAG, "out", F_CTL_ADJ_OUT, t_show_rib},
@@ -206,8 +206,8 @@ static const struct token t_show_ip[] = {
};
static const struct token t_show_community[] = {
- { COMMUNITY, "", NONE, t_show_rib},
- { ENDTOKEN, "", NONE, NULL}
+ { COMMUNITY, "", NONE, t_show_rib},
+ { ENDTOKEN, "", NONE, NULL}
};
static const struct token t_network[] = {