summaryrefslogtreecommitdiff
path: root/bgpd/bgp_nexthop.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-02-09 10:14:16 -0800
committerPaul Jakma <paul@quagga.net>2009-06-12 17:09:03 +0100
commit66e5cd87194ae6fdd51061a91b4698bc0a652f6b (patch)
tree659d31f9a7dfb8d9ad9a51f37ff0853054a45399 /bgpd/bgp_nexthop.c
parentcedd7f2fa6823bca9ddcfb062f97ed83b11a80dd (diff)
[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
Diffstat (limited to 'bgpd/bgp_nexthop.c')
-rw-r--r--bgpd/bgp_nexthop.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_nexthop.c b/bgpd/bgp_nexthop.c
index b2ee7f3b..67a49f7a 100644
--- a/bgpd/bgp_nexthop.c
+++ b/bgpd/bgp_nexthop.c
@@ -96,7 +96,7 @@ bnc_nexthop_free (struct bgp_nexthop_cache *bnc)
}
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 @@ bgp_nexthop_self (afi_t afi, struct attr *attr)
}
static struct bgp_nexthop_cache *
-zlookup_read ()
+zlookup_read (void)
{
struct stream *s;
uint16_t length;
@@ -804,7 +804,7 @@ zlookup_query (struct in_addr addr)
#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 @@ bgp_config_write_scan_time (struct vty *vty)
}
void
-bgp_scan_init ()
+bgp_scan_init (void)
{
zlookup = zclient_new ();
zlookup->sock = -1;