]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Treewide: use ANSI function definitions
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 24 Jan 2019 09:12:36 +0000 (10:12 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 24 Jan 2019 10:21:59 +0000 (11:21 +0100)
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
78 files changed:
babeld/babel_interface.c
babeld/babeld.c
babeld/message.c
babeld/neighbour.c
babeld/resend.c
babeld/route.c
babeld/source.c
babeld/util.c
babeld/xroute.c
bgpd/bgp_keepalives.c
bgpd/bgp_updgrp_packet.c
bgpd/bgpd.c
bgpd/rfapi/bgp_rfapi_cfg.c
bgpd/rfapi/rfapi_import.c
bgpd/rfapi/rfapi_rib.c
bgpd/rfapi/rfapi_vty.c
bgpd/rfp-example/librfp/rfp_example.c
bgpd/rfp-example/rfptest/rfptest.c
eigrpd/eigrp_dump.c
eigrpd/eigrp_interface.c
eigrpd/eigrp_packet.c
eigrpd/eigrp_topology.c
eigrpd/eigrpd.c
isisd/isis_circuit.c
isisd/isis_spf.c
isisd/isis_te.c
isisd/isisd.c
lib/command.c
lib/filter.c
lib/frr_pthread.c
lib/graph.c
lib/hash.c
lib/if_rmap.c
lib/keychain.c
lib/md5.c
lib/plist.c
lib/prefix.c
lib/skiplist.c
lib/thread.c
lib/vty.c
ospf6d/ospf6_asbr.c
ospfd/ospf_api.c
ospfd/ospf_interface.c
ospfd/ospf_lsa.c
ospfd/ospf_lsdb.c
ospfd/ospf_packet.c
ospfd/ospf_ri.c
ospfd/ospf_route.c
ospfd/ospf_te.c
pimd/pim_signals.c
pimd/pim_static.c
pimd/pim_time.c
pimd/pimd.c
ripd/rip_interface.c
ripd/rip_offset.c
ripd/rip_routemap.c
ripngd/ripng_debug.c
ripngd/ripng_interface.c
ripngd/ripng_peer.c
ripngd/ripng_routemap.c
ripngd/ripng_zebra.c
ripngd/ripngd.c
tests/bgpd/test_aspath.c
tests/helpers/c/main.c
tests/lib/test_heavy.c
tests/lib/test_heavy_thread.c
tests/lib/test_heavy_wq.c
tests/lib/test_table.c
tools/start-stop-daemon.c
vtysh/extract.pl.in
vtysh/vtysh.c
vtysh/vtysh_config.c
vtysh/vtysh_user.c
zebra/irdp_interface.c
zebra/label_manager.c
zebra/zebra_routemap.c
zebra/zebra_vxlan.c
zebra/zebra_vxlan.h

index a8698bfce34dea829d7e4ba9d22f73785d811f5f..79242f5b85c5910c8da1a259051ace4aadd1731f 100644 (file)
@@ -1262,7 +1262,7 @@ DEFUN (show_babel_parameters,
 }
 
 void
-babel_if_init ()
+babel_if_init(void)
 {
     /* initialize interface list */
     hook_register_prio(if_add, 0, babel_if_new_hook);
index 702c1fbabb7c8c6f7c9ef5e27900c41eb97fb5ea..39451b435a44ec59b7876dafcb2dbdf39cc0ac42 100644 (file)
@@ -307,7 +307,7 @@ babel_initial_noise(void)
 
 /* Delete all the added babel routes, make babeld only speak to zebra. */
 static void
-babel_clean_routing_process()
+babel_clean_routing_process(void)
 {
     flush_all_routes();
     babel_interface_close_all();
index f85a08ac3a62544833e788e2af3bc1da668c38fa..794b6e997609b31f3437709d2732fd4e0f4a02df 100644 (file)
@@ -1430,7 +1430,7 @@ send_wildcard_retraction(struct interface *ifp)
 }
 
 void
-update_myseqno()
+update_myseqno(void)
 {
     myseqno = seqno_plus(myseqno, 1);
 }
index 83f05bb5cf337698dc0b8622ee7394d26c6ba45e..d962a0961c9299c0a4c66c94c6458dc3d69ec2dc 100644 (file)
@@ -234,7 +234,7 @@ neighbour_txcost(struct neighbour *neigh)
 }
 
 unsigned
-check_neighbours()
+check_neighbours(void)
 {
     struct neighbour *neigh;
     int changed, rc;
index 8949075f67d0beaced0dddd29f878780f726305d..f08897fbd1cbe3b8083cf0cd559636e48b24b9d6 100644 (file)
@@ -238,7 +238,7 @@ satisfy_request(const unsigned char *prefix, unsigned char plen,
 }
 
 void
-expire_resend()
+expire_resend(void)
 {
     struct resend *current, *previous;
     int recompute = 0;
@@ -267,7 +267,7 @@ expire_resend()
 }
 
 void
-recompute_resend_time()
+recompute_resend_time(void)
 {
     struct resend *request;
     struct timeval resend = {0, 0};
@@ -286,7 +286,7 @@ recompute_resend_time()
 }
 
 void
-do_resend()
+do_resend(void)
 {
     struct resend *resend;
 
index 76f038cda5f4793fc90bdf6dff77d7e1c486ea2b..ab104aa2b10f8216d28664b8a62132c4a81a926d 100644 (file)
@@ -248,7 +248,7 @@ flush_route(struct babel_route *route)
 }
 
 void
-flush_all_routes()
+flush_all_routes(void)
 {
     int i;
 
index ed165b41b44d8956a8c1ca69efba9b0a810d7de8..2c303b624fde950df5c8bdb24ee06fec0d6639ed 100644 (file)
@@ -135,7 +135,7 @@ update_source(struct source *src,
 }
 
 void
-expire_sources()
+expire_sources(void)
 {
     struct source *src;
 
index 880cda2fce7ceb540fa067642192081cb9e303f6..c6606e4f0e39f8c3fe1e1ae722fc82d354c2a2df 100644 (file)
@@ -441,7 +441,7 @@ uchar_to_in6addr(struct in6_addr *dest, const unsigned char *src)
 }
 
 int
-daemonise()
+daemonise(void)
 {
     int rc;
 
index 88e9479e4b868f27440c2d7b5eff18085a28cc55..61ea5a1ac13b74a9489b923d90bbcffc1c12d3f8 100644 (file)
@@ -169,7 +169,7 @@ add_xroute(unsigned char prefix[16], unsigned char plen,
 
 /* Returns an overestimate of the number of xroutes. */
 int
-xroutes_estimate()
+xroutes_estimate(void)
 {
     return numxroutes;
 }
index 87e3ff2495270c8285657fcb30146d58f7398fe4..910c8a7372d8e3cd816867cd05c7b13bd2dca63a 100644 (file)
@@ -288,7 +288,7 @@ void bgp_keepalives_off(struct peer *peer)
        pthread_mutex_unlock(peerhash_mtx);
 }
 
-void bgp_keepalives_wake()
+void bgp_keepalives_wake(void)
 {
        pthread_mutex_lock(peerhash_mtx);
        {
index ca6bb5ab82ea86e4d9dfc5ce8365f7baa77108a6..cbbf8b230290bfc96baa3ffa95b4599d355f12dd 100644 (file)
@@ -65,7 +65,7 @@
 /********************
  * PUBLIC FUNCTIONS
  ********************/
-struct bpacket *bpacket_alloc()
+struct bpacket *bpacket_alloc(void)
 {
        struct bpacket *pkt;
 
index 5b8ceb054149e1999990d802cd1872a6aca531ed..0b6e05fff60709379362c9a936da892ad018eab4 100644 (file)
@@ -7839,7 +7839,7 @@ static const struct cmd_variable_handler bgp_viewvrf_var_handlers[] = {
 struct frr_pthread *bgp_pth_io;
 struct frr_pthread *bgp_pth_ka;
 
-static void bgp_pthreads_init()
+static void bgp_pthreads_init(void)
 {
        assert(!bgp_pth_io);
        assert(!bgp_pth_ka);
@@ -7858,7 +7858,7 @@ static void bgp_pthreads_init()
        bgp_pth_ka = frr_pthread_new(&ka, "BGP Keepalives thread", "bgpd_ka");
 }
 
-void bgp_pthreads_run()
+void bgp_pthreads_run(void)
 {
        frr_pthread_run(bgp_pth_io, NULL);
        frr_pthread_run(bgp_pth_ka, NULL);
@@ -7868,7 +7868,7 @@ void bgp_pthreads_run()
        frr_pthread_wait_running(bgp_pth_ka);
 }
 
-void bgp_pthreads_finish()
+void bgp_pthreads_finish(void)
 {
        frr_pthread_stop_all();
        frr_pthread_finish();
index e4e676061264b609a2978d6dfbc0e0862f9951ea..05e057f07fe358b54d1fcd1374d698cc00447d19 100644 (file)
@@ -575,7 +575,7 @@ static struct rfapi_l2_group_cfg *rfapi_l2_group_lookup_byname(struct bgp *bgp,
        return NULL;
 }
 
-static struct rfapi_l2_group_cfg *rfapi_l2_group_new()
+static struct rfapi_l2_group_cfg *rfapi_l2_group_new(void)
 {
        struct rfapi_l2_group_cfg *rfg;
 
@@ -1396,7 +1396,7 @@ DEFUN (vnc_export_mode,
        return CMD_SUCCESS;
 }
 
-static struct rfapi_rfg_name *rfgn_new()
+static struct rfapi_rfg_name *rfgn_new(void)
 {
        return XCALLOC(MTYPE_RFAPI_RFG_NAME, sizeof(struct rfapi_rfg_name));
 }
index 904d43c65ad8137d1444104555117dbb30c1bd11..6b37073e0e7b0744596a766e5000c6fa0ff3f167 100644 (file)
@@ -123,7 +123,7 @@ void rfapiDebugBacktrace(void)
  * Count remote routes and compare with actively-maintained values.
  * Abort if they disagree.
  */
-void rfapiCheckRouteCount()
+void rfapiCheckRouteCount(void)
 {
        struct bgp *bgp = bgp_get_default();
        struct rfapi *h;
index 520cc141c08a0db67624f7334616b2c7e85615fe..8e8acbfb91c3c35fffab3f4a7d9db4129650c4e3 100644 (file)
@@ -222,7 +222,7 @@ void rfapiRibCheckCounts(
        assert(t_ri_active + t_ri_deleted + t_ri_pend + offset == alloc_count);
 }
 
-static struct rfapi_info *rfapi_info_new()
+static struct rfapi_info *rfapi_info_new(void)
 {
        return XCALLOC(MTYPE_RFAPI_INFO, sizeof(struct rfapi_info));
 }
index 04ddff934dc04b450ef0249961969845e65aa449..ea82c254bcecbea7168ac2f5ef6b8b0869e7970c 100644 (file)
@@ -4964,7 +4964,7 @@ DEFUN (clear_vrf_all,
        return vnc_clear_vrf(vty, NULL, arg_vrf, NULL, NULL);
 }
 
-void rfapi_vty_init()
+void rfapi_vty_init(void)
 {
        install_element(ENABLE_NODE, &add_vnc_prefix_cost_life_lnh_cmd);
        install_element(ENABLE_NODE, &add_vnc_prefix_life_cost_lnh_cmd);
index e8f670cf1272f33d5fed49c7fc87bccdcd685f08..060fc765509626bc7e7f6b9813847d4371eeacb8 100644 (file)
@@ -107,7 +107,7 @@ DEFUN (rfp_full_table_download,
        return CMD_SUCCESS;
 }
 
-static void rfp_vty_install()
+static void rfp_vty_install(void)
 {
        static int installed = 0;
        if (installed) /* do this only once */
index 48df6c0cc7689250b7ece7ffb786764ed7937617..1036829b899ff68b80e55fe5af6de1fa990b7e90 100644 (file)
@@ -26,7 +26,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include "rfptest.h"
-int main()
+int main(void)
 {
        printf("Your test code goes here.\n");
        exit(1);
index c975c0abc7b6cef50b2b48c03edd4560e4194445..876e1cac0735ade2c1fee7248b3d86b096799cb9 100644 (file)
@@ -605,7 +605,7 @@ static struct cmd_node eigrp_debug_node = {
 };
 
 /* Initialize debug commands. */
-void eigrp_debug_init()
+void eigrp_debug_init(void)
 {
        install_node(&eigrp_debug_node, config_write_debug);
 
index e450c7d999322c23a718bda5c2f30b690d8c87e9..e6cfe1deea7f00127bbb6c55bf737708d4102111 100644 (file)
@@ -122,7 +122,7 @@ int eigrp_if_delete_hook(struct interface *ifp)
 
 struct list *eigrp_iflist;
 
-void eigrp_if_init()
+void eigrp_if_init(void)
 {
        /* Initialize Zebra interface data structure. */
        // hook_register_prio(if_add, 0, eigrp_if_new);
index f3b583abdde65cfddf1e33793abb4f0223b7c67d..ee0476b28dab00a8d8895facc00c157280c6909e 100644 (file)
@@ -1101,7 +1101,7 @@ struct eigrp_packet *eigrp_packet_duplicate(struct eigrp_packet *old,
        return new;
 }
 
-static struct TLV_IPv4_Internal_type *eigrp_IPv4_InternalTLV_new()
+static struct TLV_IPv4_Internal_type *eigrp_IPv4_InternalTLV_new(void)
 {
        struct TLV_IPv4_Internal_type *new;
 
@@ -1327,7 +1327,7 @@ uint16_t eigrp_add_authTLV_SHA256_to_stream(struct stream *s,
        return 0;
 }
 
-struct TLV_MD5_Authentication_Type *eigrp_authTLV_MD5_new()
+struct TLV_MD5_Authentication_Type *eigrp_authTLV_MD5_new(void)
 {
        struct TLV_MD5_Authentication_Type *new;
 
@@ -1342,7 +1342,7 @@ void eigrp_authTLV_MD5_free(struct TLV_MD5_Authentication_Type *authTLV)
        XFREE(MTYPE_EIGRP_AUTH_TLV, authTLV);
 }
 
-struct TLV_SHA256_Authentication_Type *eigrp_authTLV_SHA256_new()
+struct TLV_SHA256_Authentication_Type *eigrp_authTLV_SHA256_new(void)
 {
        struct TLV_SHA256_Authentication_Type *new;
 
@@ -1363,7 +1363,7 @@ void eigrp_IPv4_InternalTLV_free(
        XFREE(MTYPE_EIGRP_IPV4_INT_TLV, IPv4_InternalTLV);
 }
 
-struct TLV_Sequence_Type *eigrp_SequenceTLV_new()
+struct TLV_Sequence_Type *eigrp_SequenceTLV_new(void)
 {
        struct TLV_Sequence_Type *new;
 
index 0cb4e0e9f45c3d2086fd399393f287ab16ebf7d1..2d0ebf1bc56b083b56cb4073d2bad2383e5f6e3e 100644 (file)
@@ -61,7 +61,7 @@ static int eigrp_nexthop_entry_cmp(struct eigrp_nexthop_entry *,
  * del - assigned function executed before deleting topology node by list
  * function
  */
-struct route_table *eigrp_topology_new()
+struct route_table *eigrp_topology_new(void)
 {
        return route_table_init();
 }
@@ -70,7 +70,7 @@ struct route_table *eigrp_topology_new()
  * Returns new created toplogy node
  * cmp - assigned function for comparing topology entry
  */
-struct eigrp_prefix_entry *eigrp_prefix_entry_new()
+struct eigrp_prefix_entry *eigrp_prefix_entry_new(void)
 {
        struct eigrp_prefix_entry *new;
        new = XCALLOC(MTYPE_EIGRP_PREFIX_ENTRY,
@@ -102,7 +102,7 @@ static int eigrp_nexthop_entry_cmp(struct eigrp_nexthop_entry *entry1,
  * Returns new topology entry
  */
 
-struct eigrp_nexthop_entry *eigrp_nexthop_entry_new()
+struct eigrp_nexthop_entry *eigrp_nexthop_entry_new(void)
 {
        struct eigrp_nexthop_entry *new;
 
index 5541ec15f343f695971ee2f63624d5244533b555..69d947e59fbb0b14752bef48db626f1823fc8ad4 100644 (file)
@@ -122,7 +122,7 @@ void eigrp_router_id_update(struct eigrp *eigrp)
        }
 }
 
-void eigrp_master_init()
+void eigrp_master_init(void)
 {
        struct timeval tv;
 
index 81b4b397ecb0eda77620eddc650fac68b0e02360..36d4a0d7c06a7b24883daa9cce9db68f49df3690 100644 (file)
@@ -69,7 +69,7 @@ int isis_interface_config_write(struct vty *);
 int isis_if_new_hook(struct interface *);
 int isis_if_delete_hook(struct interface *);
 
-struct isis_circuit *isis_circuit_new()
+struct isis_circuit *isis_circuit_new(void)
 {
        struct isis_circuit *circuit;
        int i;
@@ -1393,7 +1393,7 @@ int isis_if_delete_hook(struct interface *ifp)
        return 0;
 }
 
-void isis_circuit_init()
+void isis_circuit_init(void)
 {
        /* Initialize Zebra interface data structure */
        hook_register_prio(if_add, 0, isis_if_new_hook);
index b6f751463a7ce187478f50f557ba319a456c0213..1f283091050ba7809e2f33cfee79345831e82860 100644 (file)
@@ -1471,7 +1471,7 @@ DEFUN (show_isis_topology,
        return CMD_SUCCESS;
 }
 
-void isis_spf_cmds_init()
+void isis_spf_cmds_init(void)
 {
        install_element(VIEW_NODE, &show_isis_topology_cmd);
 }
index a69c95cadf8ce9073661cf07e5f00a68e39fa7bf..23a1f10a18adf3d20102a839a048ad11c4a914b6 100644 (file)
@@ -68,7 +68,7 @@ const char *mode2text[] = {"Disable", "Area", "AS", "Emulate"};
  *------------------------------------------------------------------------*/
 
 /* Create new MPLS TE Circuit context */
-struct mpls_te_circuit *mpls_te_circuit_new()
+struct mpls_te_circuit *mpls_te_circuit_new(void)
 {
        struct mpls_te_circuit *mtc;
 
index 419127c34e4db8edc6c227273a84f7cf2773aa1b..13cd510dd13885293516ef376c82bcff405cdf72 100644 (file)
@@ -2161,7 +2161,7 @@ int isis_config_write(struct vty *vty)
 
 struct cmd_node router_node = {ROUTER_NODE, "%s(config-router)# ", 1};
 
-void isis_init()
+void isis_init(void)
 {
        /* Install IS-IS top node */
        install_node(&router_node, isis_config_write);
index 05ccb52ab574a92b53e2a47be86b5fa44777371c..cae705446703ce5218e0694600cc2162bd358efe 100644 (file)
@@ -2883,7 +2883,7 @@ void cmd_init(int terminal)
 #endif
 }
 
-void cmd_terminate()
+void cmd_terminate(void)
 {
        struct cmd_node *cmd_node;
 
index 1aae58b61ca59c1b53ab7cf3c2f83548cba0fe1e..317c1b68b78609d1a8634b080b28c36a8cc9f21a 100644 (file)
@@ -2212,14 +2212,14 @@ static void access_list_init_ipv6(void)
        install_element(CONFIG_NODE, &no_ipv6_access_list_remark_comment_cmd);
 }
 
-void access_list_init()
+void access_list_init(void)
 {
        access_list_init_ipv4();
        access_list_init_ipv6();
        access_list_init_mac();
 }
 
-void access_list_reset()
+void access_list_reset(void)
 {
        access_list_reset_ipv4();
        access_list_reset_ipv6();
index d5a2007c4df64c7b1b1ca3046dcf6ff350516d60..f964adfdbb17eb1c7617b75129580b1623da9097 100644 (file)
@@ -47,7 +47,7 @@ static struct list *frr_pthread_list;
 
 /* ------------------------------------------------------------------------ */
 
-void frr_pthread_init()
+void frr_pthread_init(void)
 {
        pthread_mutex_lock(&frr_pthread_list_mtx);
        {
@@ -57,7 +57,7 @@ void frr_pthread_init()
        pthread_mutex_unlock(&frr_pthread_list_mtx);
 }
 
-void frr_pthread_finish()
+void frr_pthread_finish(void)
 {
        pthread_mutex_lock(&frr_pthread_list_mtx);
        {
@@ -178,7 +178,7 @@ int frr_pthread_stop(struct frr_pthread *fpt, void **result)
        return ret;
 }
 
-void frr_pthread_stop_all()
+void frr_pthread_stop_all(void)
 {
        pthread_mutex_lock(&frr_pthread_list_mtx);
        {
index 4bc3eb82b8521b9b4bc4dd331ef824d1fa8fbe3d..128e45c57002951d8e64ef70bb30f10dcb51d176 100644 (file)
@@ -27,7 +27,7 @@
 
 DEFINE_MTYPE_STATIC(LIB, GRAPH, "Graph")
 DEFINE_MTYPE_STATIC(LIB, GRAPH_NODE, "Graph Node")
-struct graph *graph_new()
+struct graph *graph_new(void)
 {
        struct graph *graph = XCALLOC(MTYPE_GRAPH, sizeof(struct graph));
        graph->nodes = vector_init(VECTOR_MIN_SIZE);
index 641c75136872800825d1795233e643e74406873a..6c3c953e977656547e0b9b0195cd5022eba781b1 100644 (file)
@@ -445,7 +445,7 @@ DEFUN_NOSH(show_hash_stats,
        return CMD_SUCCESS;
 }
 
-void hash_cmd_init()
+void hash_cmd_init(void)
 {
        install_element(ENABLE_NODE, &show_hash_stats_cmd);
 }
index 108ab7ec6b5dacc737970eae4fb60dbbf766938e..69da695dcbe2a21274494363223f68fa2947afd0 100644 (file)
@@ -287,7 +287,7 @@ int config_write_if_rmap(struct vty *vty)
        return write;
 }
 
-void if_rmap_reset()
+void if_rmap_reset(void)
 {
        hash_clean(ifrmaphash, (void (*)(void *))if_rmap_free);
 }
index 601b44a4f1abe71b2da86129fdd6e736e9f098a3..9aa3ef695f3833929e1149e6f1bc2e3aaa0565c4 100644 (file)
@@ -1040,7 +1040,7 @@ static int keychain_config_write(struct vty *vty)
        return 0;
 }
 
-void keychain_init()
+void keychain_init(void)
 {
        keychain_list = list_new();
 
index 8989a93c597b2fb133c4e009b4f00fca5609a4b0..5a3e7c8d1bb4871cc0d3304a0941d7fb660ab1a4 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -375,13 +375,8 @@ static void md5_calc(const uint8_t *b64, md5_ctxt *ctxt)
 }
 
 /* From RFC 2104 */
-void hmac_md5(text, text_len, key, key_len,
-             digest) unsigned char *text; /* pointer to data stream */
-int text_len;                             /* length of data stream */
-unsigned char *key;                       /* pointer to authentication key */
-int key_len;                              /* length of authentication key */
-uint8_t *digest;                          /* caller digest to be filled in */
-
+void hmac_md5(unsigned char *text, int text_len, unsigned char *key,
+             int key_len, uint8_t *digest)
 {
        MD5_CTX context;
        unsigned char k_ipad[65]; /* inner padding -
index ee68fbc0f12bfa57fda07547ec33a0d264508a16..41c8e4f8c0246fdc9b0921c77f7c33db8bf24d83 100644 (file)
@@ -2111,7 +2111,7 @@ static void prefix_list_init_ipv6(void)
        install_element(ENABLE_NODE, &clear_ipv6_prefix_list_cmd);
 }
 
-void prefix_list_init()
+void prefix_list_init(void)
 {
        cmd_variable_handler_register(plist_var_handlers);
 
@@ -2119,7 +2119,7 @@ void prefix_list_init()
        prefix_list_init_ipv6();
 }
 
-void prefix_list_reset()
+void prefix_list_reset(void)
 {
        prefix_list_reset_afi(AFI_IP, 0);
        prefix_list_reset_afi(AFI_IP6, 0);
index 0203301562f5df3382b8233423df420c1c0f891d..07eb1785b7f911bddf536bcb2220d18bb4882fe3 100644 (file)
@@ -820,7 +820,7 @@ const char *prefix_family_str(const struct prefix *p)
 }
 
 /* Allocate new prefix_ipv4 structure. */
-struct prefix_ipv4 *prefix_ipv4_new()
+struct prefix_ipv4 *prefix_ipv4_new(void)
 {
        struct prefix_ipv4 *p;
 
@@ -1359,7 +1359,7 @@ const char *prefix2str(union prefixconstptr pu, char *str, int size)
        return str;
 }
 
-struct prefix *prefix_new()
+struct prefix *prefix_new(void)
 {
        struct prefix *p;
 
index 3933429c3b0bd737dde7fda12cea324dc81c4b15..dda442580a2c87d9e87e67cbde7b0514dfc93bf9 100644 (file)
@@ -88,7 +88,7 @@ static struct skiplist *skiplist_last_created; /* debugging hack */
 #endif
 
 
-static int randomLevel()
+static int randomLevel(void)
 {
        register int level = 0;
        register int b;
index 867ca2dc6040c43955aec479d0c7476e92790a47..ae8e375a27c9405b9a49916a9c4da582ad6ecbce 100644 (file)
@@ -400,7 +400,7 @@ static void cancelreq_del(void *cr)
 }
 
 /* initializer, only ever called once */
-static void initializer()
+static void initializer(void)
 {
        pthread_key_create(&thread_current, NULL);
 }
index 8450922c2bb26e2554da72ff469c1fe15239dc37..d6fda8cbb4596735b1c648de22ec5046ff1099cc 100644 (file)
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1605,7 +1605,7 @@ static int vty_flush(struct thread *thread)
 }
 
 /* Allocate new vty struct. */
-struct vty *vty_new()
+struct vty *vty_new(void)
 {
        struct vty *new = XCALLOC(MTYPE_VTY, sizeof(struct vty));
 
@@ -3035,7 +3035,7 @@ struct cmd_node vty_node = {
 };
 
 /* Reset all VTY status. */
-void vty_reset()
+void vty_reset(void)
 {
        unsigned int i;
        struct vty *vty;
@@ -3100,7 +3100,7 @@ static void vty_save_cwd(void)
        strcpy(vty_cwd, cwd);
 }
 
-char *vty_get_cwd()
+char *vty_get_cwd(void)
 {
        return vty_cwd;
 }
@@ -3115,7 +3115,7 @@ int vty_shell_serv(struct vty *vty)
        return vty->type == VTY_SHELL_SERV ? 1 : 0;
 }
 
-void vty_init_vtysh()
+void vty_init_vtysh(void)
 {
        vtyvec = vector_init(VECTOR_MIN_SIZE);
 }
index dc7a3f6d45766c8f8b848b45273fbdcab741a6da..671267aa05e7ace5f568db226f6db7af91ae3615 100644 (file)
@@ -1897,7 +1897,7 @@ int config_write_ospf6_debug_asbr(struct vty *vty)
        return 0;
 }
 
-void install_element_ospf6_debug_asbr()
+void install_element_ospf6_debug_asbr(void)
 {
        install_element(ENABLE_NODE, &debug_ospf6_asbr_cmd);
        install_element(ENABLE_NODE, &no_debug_ospf6_asbr_cmd);
index b1175a2f68cc3f7e080fff2048a7a3945b439c49..a3b337a0c0b782dbd7caabb95af8ada37ee43d1a 100644 (file)
@@ -300,7 +300,7 @@ uint32_t msg_get_seq(struct msg *msg)
  * -----------------------------------------------------------
  */
 
-struct msg_fifo *msg_fifo_new()
+struct msg_fifo *msg_fifo_new(void)
 {
        return XCALLOC(MTYPE_OSPF_API_FIFO, sizeof(struct msg_fifo));
 }
index f1477ba14dc531ad32d3f9fba56515302c85aebe..ce1604a5b1c5a667058f549739f54dd7a39c3c4b 100644 (file)
@@ -1182,7 +1182,7 @@ int ospf_vls_in_area(struct ospf_area *area)
 }
 
 
-struct crypt_key *ospf_crypt_key_new()
+struct crypt_key *ospf_crypt_key_new(void)
 {
        return XCALLOC(MTYPE_OSPF_CRYPT_KEY, sizeof(struct crypt_key));
 }
@@ -1230,7 +1230,7 @@ uint8_t ospf_default_iftype(struct interface *ifp)
                return OSPF_IFTYPE_BROADCAST;
 }
 
-void ospf_if_init()
+void ospf_if_init(void)
 {
        /* Initialize Zebra interface data structure. */
        hook_register_prio(if_add, 0, ospf_if_new_hook);
index 609effd874163bff9047345a581eadf1535c0a16..c9710e9165851e24655e192c29be61d1a15716ca 100644 (file)
@@ -150,7 +150,7 @@ int ospf_lsa_checksum_valid(struct lsa_header *lsa)
 
 
 /* Create OSPF LSA. */
-struct ospf_lsa *ospf_lsa_new()
+struct ospf_lsa *ospf_lsa_new(void)
 {
        struct ospf_lsa *new;
 
index f39bea97684c1793fe19171ad77a9503c2a41e03..2e850c4e26705963f6b16bb79609ac40ecddf8ff 100644 (file)
@@ -31,7 +31,7 @@
 #include "ospfd/ospf_lsa.h"
 #include "ospfd/ospf_lsdb.h"
 
-struct ospf_lsdb *ospf_lsdb_new()
+struct ospf_lsdb *ospf_lsdb_new(void)
 {
        struct ospf_lsdb *new;
 
index 3bb3b79a6a728481e75f041f88c5ad58cb786a3c..136683b074ca15ac18932048614f69b273181648 100644 (file)
@@ -148,7 +148,7 @@ void ospf_packet_free(struct ospf_packet *op)
        XFREE(MTYPE_OSPF_PACKET, op);
 }
 
-struct ospf_fifo *ospf_fifo_new()
+struct ospf_fifo *ospf_fifo_new(void)
 {
        struct ospf_fifo *new;
 
index 72f6dbe08e220c95e43bf38e1f3cb7f191a140af..4a0d4add150859818160fb5b4677d9c3fcae09e7 100644 (file)
@@ -146,7 +146,7 @@ static int ospf_router_info_register(uint8_t scope)
        return rc;
 }
 
-static int ospf_router_info_unregister()
+static int ospf_router_info_unregister(void)
 {
 
        if ((OspfRI.scope != OSPF_OPAQUE_AS_LSA)
index 7ee91b5b6c9655427fea257512e7fc6f53018c43..da83c1ddafb8a557d39fb09dca88e377698c2725 100644 (file)
@@ -39,7 +39,7 @@
 #include "ospfd/ospf_zebra.h"
 #include "ospfd/ospf_dump.h"
 
-struct ospf_route *ospf_route_new()
+struct ospf_route *ospf_route_new(void)
 {
        struct ospf_route *new;
 
@@ -51,7 +51,7 @@ struct ospf_route *ospf_route_new()
        return new;
 }
 
-void ospf_route_free(struct ospf_route * or)
+void ospf_route_free(struct ospf_route *or)
 {
        if (or->paths)
                list_delete(& or->paths);
@@ -59,7 +59,7 @@ void ospf_route_free(struct ospf_route * or)
        XFREE(MTYPE_OSPF_ROUTE, or);
 }
 
-struct ospf_path *ospf_path_new()
+struct ospf_path *ospf_path_new(void)
 {
        struct ospf_path *new;
 
index 3efc219fcb8c38063bd46152636f178f939bb5ed..bd8cbee11ab2e2ed525649b13adc46b262686ecc 100644 (file)
@@ -150,7 +150,7 @@ static int ospf_mpls_te_register(enum inter_as_mode mode)
        return rc;
 }
 
-static int ospf_mpls_te_unregister()
+static int ospf_mpls_te_unregister(void)
 {
        uint8_t scope;
 
index 0e9b09bf8475d9e3a608264ac1f57d725f69ed69..38387d38c3a7d9f23d6e35476491f18a43e09245 100644 (file)
  * Signal handlers
  */
 
-static void pim_sighup()
+static void pim_sighup(void)
 {
        zlog_info("SIGHUP received, ignoring");
 }
 
-static void pim_sigint()
+static void pim_sigint(void)
 {
        zlog_notice("Terminating on signal SIGINT");
        pim_terminate();
        exit(1);
 }
 
-static void pim_sigterm()
+static void pim_sigterm(void)
 {
        zlog_notice("Terminating on signal SIGTERM");
        pim_terminate();
        exit(1);
 }
 
-static void pim_sigusr1()
+static void pim_sigusr1(void)
 {
        zlog_rotate();
 }
index 9569b7dcac2fa86cfb91e2a329c3cdc202fda3f0..7334353c3757bf4beab35c9208f07ea9a8f37f6d 100644 (file)
@@ -37,7 +37,7 @@ void pim_static_route_free(struct static_route *s_route)
        XFREE(MTYPE_PIM_STATIC_ROUTE, s_route);
 }
 
-static struct static_route *static_route_alloc()
+static struct static_route *static_route_alloc(void)
 {
        return XCALLOC(MTYPE_PIM_STATIC_ROUTE, sizeof(struct static_route));
 }
index 23c85c2fa8e7225d3725b1cf445339ba8ebaeba5..f12f767537512e272408dd99744789cc3b4dc717 100644 (file)
@@ -47,7 +47,7 @@ static int gettime_monotonic(struct timeval *tv)
   pim_time_monotonic_sec():
   number of seconds since some unspecified starting point
 */
-int64_t pim_time_monotonic_sec()
+int64_t pim_time_monotonic_sec(void)
 {
        struct timeval now_tv;
 
@@ -65,7 +65,7 @@ int64_t pim_time_monotonic_sec()
   pim_time_monotonic_dsec():
   number of deciseconds since some unspecified starting point
 */
-int64_t pim_time_monotonic_dsec()
+int64_t pim_time_monotonic_dsec(void)
 {
        struct timeval now_tv;
        int64_t now_dsec;
index b993bcdc03018acd88eb2e35cee0d312a6fc25ab..656b000579f380d73d633b27e9c7f79e2b2e49aa 100644 (file)
@@ -67,7 +67,7 @@ void pim_prefix_list_update(struct prefix_list *plist)
        }
 }
 
-static void pim_free()
+static void pim_free(void)
 {
        pim_route_map_terminate();
 
@@ -123,7 +123,7 @@ void pim_init(void)
        pim_cmd_init();
 }
 
-void pim_terminate()
+void pim_terminate(void)
 {
        struct zclient *zclient;
 
index 96b1cd89387d0a5ab30b0385a66d6104da47b11c..9575f6b8a8d466c80176177e4f35354909618f84 100644 (file)
@@ -563,7 +563,7 @@ int rip_if_down(struct interface *ifp)
 }
 
 /* Needed for stop RIP process. */
-void rip_if_down_all()
+void rip_if_down_all(void)
 {
        struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
        struct interface *ifp;
@@ -964,7 +964,7 @@ void rip_enable_apply(struct interface *ifp)
 }
 
 /* Apply network configuration to all interface. */
-void rip_enable_apply_all()
+void rip_enable_apply_all(void)
 {
        struct vrf *vrf = vrf_lookup_by_id(VRF_DEFAULT);
        struct interface *ifp;
@@ -1029,7 +1029,7 @@ int rip_neighbor_delete(struct prefix_ipv4 *p)
 }
 
 /* Clear all network and neighbor configuration. */
-void rip_clean_network()
+void rip_clean_network(void)
 {
        unsigned int i;
        char *str;
index 418ec3fc7b73aef8556f559856d61b9eb7c03e5d..ca273c53b2fc41432a355ad4e7508aa7437c3282 100644 (file)
@@ -152,14 +152,14 @@ static int offset_list_cmp(struct rip_offset_list *o1,
        return strcmp(o1->ifname, o2->ifname);
 }
 
-void rip_offset_init()
+void rip_offset_init(void)
 {
        rip_offset_list_master = list_new();
        rip_offset_list_master->cmp = (int (*)(void *, void *))offset_list_cmp;
        rip_offset_list_master->del = (void (*)(void *))offset_list_del;
 }
 
-void rip_offset_clean()
+void rip_offset_clean(void)
 {
        list_delete(&rip_offset_list_master);
 
index b34f944c9e62ab23069c8cdcca84293789c9dd2f..3216b8f89fda9417eba84d1980cdc033d8e43378 100644 (file)
@@ -518,7 +518,7 @@ static struct route_map_rule_cmd route_set_tag_cmd = {
 #define SET_STR "Set values in destination routing protocol\n"
 
 /* Route-map init */
-void rip_route_map_init()
+void rip_route_map_init(void)
 {
        route_map_init();
 
index c56ff126271bcbb0d06a0d9ac0c094e7e3ca837c..fe63d8fdead1f5cc0db9ccebea0f386cf67b8cb1 100644 (file)
@@ -207,7 +207,7 @@ static int config_write_debug(struct vty *vty)
        return write;
 }
 
-void ripng_debug_init()
+void ripng_debug_init(void)
 {
        ripng_debug_event = 0;
        ripng_debug_packet = 0;
index 4d14fbab649290301604d853d2173e7782560426..e5dc6e6af69ccefb906185ca3804b0d623c13a90 100644 (file)
@@ -739,7 +739,7 @@ static void ripng_enable_apply_all(void)
 }
 
 /* Clear all network and neighbor configuration */
-void ripng_clean_network()
+void ripng_clean_network(void)
 {
        unsigned int i;
        char *str;
@@ -930,7 +930,7 @@ static struct cmd_node interface_node = {
 };
 
 /* Initialization of interface. */
-void ripng_if_init()
+void ripng_if_init(void)
 {
        /* Interface initialize. */
        hook_register_prio(if_add, 0, ripng_if_new_hook);
index 6b2a18353924921b6548a9ca877d567f1ef0c65e..756162d65c5d4ecfb232c51cf987790d3cecc040 100644 (file)
@@ -183,7 +183,7 @@ static int ripng_peer_list_cmp(struct ripng_peer *p1, struct ripng_peer *p2)
        return memcmp(&p1->addr, &p2->addr, sizeof(struct in6_addr));
 }
 
-void ripng_peer_init()
+void ripng_peer_init(void)
 {
        peer_list = list_new();
        peer_list->cmp = (int (*)(void *, void *))ripng_peer_list_cmp;
index 9a9e346a5931c33f0684e0f756f1778cd763da83..0604e272cdfd6800b6318f3746841616de5c6c61 100644 (file)
@@ -337,7 +337,7 @@ static struct route_map_rule_cmd route_set_tag_cmd = {
 #define MATCH_STR "Match values from routing table\n"
 #define SET_STR "Set values in destination routing protocol\n"
 
-void ripng_route_map_init()
+void ripng_route_map_init(void)
 {
        route_map_init();
 
index e3f42edf51266ddf6cafb1a401ca06482349fbdc..28a57f25d007bbbcf6814d82e733df6d92b50f98 100644 (file)
@@ -161,7 +161,7 @@ int ripng_redistribute_check(int type)
        return vrf_bitmap_check(zclient->redist[AFI_IP6][type], VRF_DEFAULT);
 }
 
-void ripng_redistribute_clean()
+void ripng_redistribute_clean(void)
 {
        for (int i = 0; i < ZEBRA_ROUTE_MAX; i++) {
                if (!vrf_bitmap_check(zclient->redist[AFI_IP6][i], VRF_DEFAULT))
index ae8e8ab7d9d9ef099c2b57462fd6014a897d91a9..0022c726c5eb43f4ee3bb2358f4febf45fd3c8ec 100644 (file)
@@ -76,7 +76,7 @@ int ripng_route_rte(struct ripng_info *rinfo)
 }
 
 /* Allocate new ripng information. */
-struct ripng_info *ripng_info_new()
+struct ripng_info *ripng_info_new(void)
 {
        struct ripng_info *new;
 
@@ -2401,7 +2401,7 @@ static void ripng_distribute_update_all_wrapper(struct access_list *notused)
 }
 
 /* delete all the added ripng routes. */
-void ripng_clean()
+void ripng_clean(void)
 {
        int i;
        struct agg_node *rp;
@@ -2542,7 +2542,7 @@ static void ripng_routemap_update(const char *unused)
 }
 
 /* Initialize ripng structure and set commands. */
-void ripng_init()
+void ripng_init(void)
 {
        /* Install RIPNG_NODE. */
        install_node(&cmd_ripng_node, ripng_config_write);
index d2d960f278d77f8219329011821dafba30f52c72..b2612892f99cfd6c88718f406f330b6f480861fd 100644 (file)
@@ -1074,7 +1074,7 @@ static int validate(struct aspath *as, const struct test_spec *sp)
        return fails;
 }
 
-static void empty_get_test()
+static void empty_get_test(void)
 {
        struct aspath *as = aspath_empty_get();
        struct test_spec sp = {"", "", 0, 0, 0, 0, 0, 0};
@@ -1219,7 +1219,7 @@ static void aggregate_test(struct tests *t)
 }
 
 /* cmp_left tests  */
-static void cmp_test()
+static void cmp_test(void)
 {
        unsigned int i;
 #define CMP_TESTS_MAX (sizeof(left_compare) / sizeof(struct compare_tests))
index 768cf296ad407c1e50ca71c7c41645922cdff883..11db2dabc38fafd53d941b19f2685307c4a79b17 100644 (file)
@@ -26,7 +26,7 @@
 #include "memory.h"
 #include "memory_vty.h"
 
-extern void test_init();
+extern void test_init(void);
 
 struct thread_master *master;
 
@@ -56,12 +56,12 @@ static int test_timer(struct thread *thread)
        return 0;
 }
 
-static void test_timer_init()
+static void test_timer_init(void)
 {
        thread_add_timer(master, test_timer, &timer_count, 10, NULL);
 }
 
-static void test_vty_init()
+static void test_vty_init(void)
 {
        install_element(VIEW_NODE, &daemon_exit_cmd);
 }
index e2a0a2d49a1e1c9c0c4c1d554d738db09a7ab682..afc7a08e662554bd85e83b66c2d1840d3b7a0342 100644 (file)
@@ -92,12 +92,12 @@ DEFUN (clear_foo,
        return CMD_SUCCESS;
 }
 
-static void slow_vty_init()
+static void slow_vty_init(void)
 {
        install_element(VIEW_NODE, &clear_foo_cmd);
 }
 
-void test_init()
+void test_init(void)
 {
        slow_vty_init();
 }
index b3c6e4c2f79073ca25a0259f97d8449b44fd046c..d516ed0de075ba7f37c8a3bb8b494887afe6d07d 100644 (file)
@@ -122,7 +122,7 @@ DEFUN (clear_foo,
        return CMD_SUCCESS;
 }
 
-void test_init()
+void test_init(void)
 {
        install_element(VIEW_NODE, &clear_foo_cmd);
 }
index 00ddc836d7cb80b63f7de6b92557ad4c410814da..442b8c83801f54ad6273fd030ea1a053f2115687 100644 (file)
@@ -139,7 +139,7 @@ DEFUN (clear_foo,
        return CMD_SUCCESS;
 }
 
-static int heavy_wq_init()
+static int heavy_wq_init(void)
 {
        heavy_wq = work_queue_new(master, "heavy_work_queue");
 
@@ -152,7 +152,7 @@ static int heavy_wq_init()
        return 0;
 }
 
-void test_init()
+void test_init(void)
 {
        install_element(VIEW_NODE, &clear_foo_cmd);
        heavy_wq_init();
index 2c2a010533d6758a909d0c646c38e307c280f908..2b65040627610f674297f8687e4ea7499dd7e400 100644 (file)
@@ -402,7 +402,7 @@ static void verify_prefix_iter_cmp(const char *p1, const char *p2,
  *
  * Tests comparision of prefixes according to order of iteration.
  */
-static void test_prefix_iter_cmp()
+static void test_prefix_iter_cmp(void)
 {
        printf("\n\nTesting route_table_prefix_iter_cmp()\n");
 
index f2a1e9434bc9d2d848ec4a6591844986444c59f8..5903f8732f2202e7e7fc7877471e635733d86b37 100644 (file)
@@ -280,7 +280,7 @@ static void add_namespace(const char *path)
 #endif
 
 #ifdef HAVE_LXC
-static void set_namespaces()
+static void set_namespaces(void)
 {
        struct namespace *namespace;
        int fd;
@@ -294,7 +294,7 @@ static void set_namespaces()
        }
 }
 #else
-static void set_namespaces()
+static void set_namespaces(void)
 {
        if (!LIST_EMPTY(&namespace_head))
                fatal("LCX namespaces not supported");
index 2b48f1f3609a2f91bd9f0af912a811ec3a073de9..332fd248caf5312c6fc865b1efabf34fb6a15286 100755 (executable)
@@ -248,8 +248,7 @@ foreach (sort keys %live) {
 
 # Output install_element
 print <<EOF;
-void
-vtysh_init_cmd ()
+void vtysh_init_cmd(void)
 {
 EOF
 
index 6cf45789dd97459ea5aa216c39e0139fd86c1059..340c9be60156e0d1456749dd904f4c6f6ec6f69c 100644 (file)
@@ -3464,7 +3464,7 @@ static const struct cmd_variable_handler vtysh_var_handler[] = {
         .completions = vtysh_autocomplete},
        {.completions = NULL}};
 
-void vtysh_uninit()
+void vtysh_uninit(void)
 {
        if (vty->of != stdout)
                fclose(vty->of);
index fe12f82ef28065a5c3406c790306175fb3b1aa0c..91e49c45c122de51fa447459d3a89901e7f5524b 100644 (file)
@@ -516,7 +516,7 @@ int vtysh_read_config(const char *config_default_dir)
  * be edited by hand. So, we handle only "write terminal" case here and
  * integrate vtysh specific conf with conf from daemons.
  */
-void vtysh_config_write()
+void vtysh_config_write(void)
 {
        char line[81];
 
@@ -539,7 +539,7 @@ void vtysh_config_write()
        user_config_write();
 }
 
-void vtysh_config_init()
+void vtysh_config_init(void)
 {
        config_top = list_new();
        config_top->del = (void (*)(void *))line_del;
index e575b7154914a8ed396154168e5d07efab69a7c9..dcf8ca0470f7081038663d2a32daa35352445aeb 100644 (file)
@@ -122,7 +122,7 @@ static struct vtysh_user *user_lookup(const char *name)
        return NULL;
 }
 
-void user_config_write()
+void user_config_write(void)
 {
        struct listnode *node, *nnode;
        struct vtysh_user *user;
index 3e50550dd2f8dcd9a541bff34baee9c147f0f9e6..ffc49d2c1364d14149c5e9cd755fb111de012b07 100644 (file)
@@ -706,7 +706,7 @@ DEFUN (ip_irdp_debug_disable,
        return CMD_SUCCESS;
 }
 
-void irdp_if_init()
+void irdp_if_init(void)
 {
        hook_register(zebra_if_config_wr, irdp_config_write);
        hook_register(if_del, irdp_if_delete);
index bfad8ea643f7aac5cec4e4e43211aa0639644387..13472059a0614ce0fee7ebe1b4264dcf81ac1f7a 100644 (file)
@@ -480,7 +480,7 @@ int release_label_chunk(uint8_t proto, unsigned short instance, uint32_t start,
 }
 
 
-void label_manager_close()
+void label_manager_close(void)
 {
        list_delete(&lbl_mgr.lc_list);
        stream_free(obuf);
index 5461a7883d8f52fc9d6fc00bcbaa64d18b62f3e8..6d52e5f9e6a08b04280ab9012954d32e768a1798 100644 (file)
@@ -1831,7 +1831,7 @@ void zebra_routemap_config_write_protocol(struct vty *vty,
                        zebra_rmap_update_timer);
 }
 
-void zebra_route_map_init()
+void zebra_route_map_init(void)
 {
        install_element(CONFIG_NODE, &ip_protocol_cmd);
        install_element(CONFIG_NODE, &no_ip_protocol_cmd);
index 8c44838ade9cfe21514353a9e674b04e6a37c8db..280361df6ce5a756d18bfd1181215771dab80876 100644 (file)
@@ -163,7 +163,7 @@ static zebra_vni_t *zvni_add(vni_t vni);
 static int zvni_del(zebra_vni_t *zvni);
 static int zvni_send_add_to_client(zebra_vni_t *zvni);
 static int zvni_send_del_to_client(vni_t vni);
-static void zvni_build_hash_table();
+static void zvni_build_hash_table(void);
 static int zvni_vtep_match(struct in_addr *vtep_ip, zebra_vtep_t *zvtep);
 static zebra_vtep_t *zvni_vtep_find(zebra_vni_t *zvni, struct in_addr *vtep_ip);
 static zebra_vtep_t *zvni_vtep_add(zebra_vni_t *zvni, struct in_addr *vtep_ip);
@@ -3841,7 +3841,7 @@ static int zvni_send_del_to_client(vni_t vni)
  * Build the VNI hash table by going over the VxLAN interfaces. This
  * is called when EVPN (advertise-all-vni) is enabled.
  */
-static void zvni_build_hash_table()
+static void zvni_build_hash_table(void)
 {
        struct zebra_ns *zns;
        struct route_node *rn;
index c50664a28ba45c346d420cde7b6fddcd78a2a376..c25e7357edd532e793ae41e3995d2a9197cc901f 100644 (file)
@@ -37,7 +37,7 @@
 
 /* Is EVPN enabled? */
 #define EVPN_ENABLED(zvrf)  (zvrf)->advertise_all_vni
-static inline int is_evpn_enabled()
+static inline int is_evpn_enabled(void)
 {
        struct zebra_vrf *zvrf = NULL;
        zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
@@ -45,7 +45,7 @@ static inline int is_evpn_enabled()
 }
 
 static inline int
-is_vxlan_flooding_head_end()
+is_vxlan_flooding_head_end(void)
 {
        struct zebra_vrf *zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);