diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-02-09 10:14:16 -0800 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-12 17:09:03 +0100 |
commit | 66e5cd87194ae6fdd51061a91b4698bc0a652f6b (patch) | |
tree | 659d31f9a7dfb8d9ad9a51f37ff0853054a45399 /bgpd/bgp_advertise.c | |
parent | cedd7f2fa6823bca9ddcfb062f97ed83b11a80dd (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_advertise.c')
-rw-r--r-- | bgpd/bgp_advertise.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c index b9f4a85b..87eb7ac7 100644 --- a/bgpd/bgp_advertise.c +++ b/bgpd/bgp_advertise.c @@ -40,7 +40,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA one packet. To do that we maintain attribute hash in struct peer. */ static struct bgp_advertise_attr * -baa_new () +baa_new (void) { return (struct bgp_advertise_attr *) XCALLOC (MTYPE_BGP_ADVERTISE_ATTR, sizeof (struct bgp_advertise_attr)); @@ -84,7 +84,7 @@ baa_hash_cmp (const void *p1, const void *p2) structure. This structure is referred from BGP adjacency information. */ static struct bgp_advertise * -bgp_advertise_new () +bgp_advertise_new (void) { return (struct bgp_advertise *) XCALLOC (MTYPE_BGP_ADVERTISE, sizeof (struct bgp_advertise)); |