From 66e5cd87194ae6fdd51061a91b4698bc0a652f6b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 9 Feb 2009 10:14:16 -0800 Subject: [cleanup] functions taking no args should be declared with void args Use Ansi-C prototypes rather than old K&R method of declaring function without arguments --- bgpd/bgp_ecommunity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bgpd/bgp_ecommunity.c') diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 6b221e24..4d9fc708 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -34,7 +34,7 @@ struct hash *ecomhash; /* Allocate a new ecommunities. */ struct ecommunity * -ecommunity_new () +ecommunity_new (void) { return (struct ecommunity *) XCALLOC (MTYPE_ECOMMUNITY, sizeof (struct ecommunity)); @@ -108,7 +108,7 @@ ecommunity_uniq_sort (struct ecommunity *ecom) if (! ecom) return NULL; - new = ecommunity_new ();; + new = ecommunity_new (); for (i = 0; i < ecom->size; i++) { -- cgit v1.2.1