[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_nexthop.c b/bgpd/bgp_nexthop.c
index b2ee7f3..67a49f7 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -96,7 +96,7 @@
}
static struct bgp_nexthop_cache *
-bnc_new ()
+bnc_new (void)
{
return XCALLOC (MTYPE_BGP_NEXTHOP_CACHE, sizeof (struct bgp_nexthop_cache));
}
@@ -695,7 +695,7 @@
}
static struct bgp_nexthop_cache *
-zlookup_read ()
+zlookup_read (void)
{
struct stream *s;
uint16_t length;
@@ -804,7 +804,7 @@
#ifdef HAVE_IPV6
static struct bgp_nexthop_cache *
-zlookup_read_ipv6 ()
+zlookup_read_ipv6 (void)
{
struct stream *s;
uint16_t length;
@@ -1277,7 +1277,7 @@
}
void
-bgp_scan_init ()
+bgp_scan_init (void)
{
zlookup = zclient_new ();
zlookup->sock = -1;