[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
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index 6b221e2..4d9fc70 100644
--- a/bgpd/bgp_ecommunity.c
+++ b/bgpd/bgp_ecommunity.c
@@ -34,7 +34,7 @@
/* Allocate a new ecommunities. */
struct ecommunity *
-ecommunity_new ()
+ecommunity_new (void)
{
return (struct ecommunity *) XCALLOC (MTYPE_ECOMMUNITY,
sizeof (struct ecommunity));
@@ -108,7 +108,7 @@
if (! ecom)
return NULL;
- new = ecommunity_new ();;
+ new = ecommunity_new ();
for (i = 0; i < ecom->size; i++)
{