diff options
| author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2019-01-24 10:12:36 +0100 | 
|---|---|---|
| committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2019-01-24 11:21:59 +0100 | 
| commit | 4d762f2607f07b55f464bae4ec0eb7fdf7c656a9 (patch) | |
| tree | c8e9c8056c9fec104ec152ccf254c282fa6a90c6 /bgpd | |
| parent | 262d4dda2aa009f200370a4c4635899ceb85ab90 (diff) | |
Treewide: use ANSI function definitions
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'bgpd')
| -rw-r--r-- | bgpd/bgp_keepalives.c | 2 | ||||
| -rw-r--r-- | bgpd/bgp_updgrp_packet.c | 2 | ||||
| -rw-r--r-- | bgpd/bgpd.c | 6 | ||||
| -rw-r--r-- | bgpd/rfapi/bgp_rfapi_cfg.c | 4 | ||||
| -rw-r--r-- | bgpd/rfapi/rfapi_import.c | 2 | ||||
| -rw-r--r-- | bgpd/rfapi/rfapi_rib.c | 2 | ||||
| -rw-r--r-- | bgpd/rfapi/rfapi_vty.c | 2 | ||||
| -rw-r--r-- | bgpd/rfp-example/librfp/rfp_example.c | 2 | ||||
| -rw-r--r-- | bgpd/rfp-example/rfptest/rfptest.c | 2 | 
9 files changed, 12 insertions, 12 deletions
diff --git a/bgpd/bgp_keepalives.c b/bgpd/bgp_keepalives.c index 87e3ff2495..910c8a7372 100644 --- a/bgpd/bgp_keepalives.c +++ b/bgpd/bgp_keepalives.c @@ -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);  	{ diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c index ca6bb5ab82..cbbf8b2302 100644 --- a/bgpd/bgp_updgrp_packet.c +++ b/bgpd/bgp_updgrp_packet.c @@ -65,7 +65,7 @@  /********************   * PUBLIC FUNCTIONS   ********************/ -struct bpacket *bpacket_alloc() +struct bpacket *bpacket_alloc(void)  {  	struct bpacket *pkt; diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 5b8ceb0541..0b6e05fff6 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -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(); diff --git a/bgpd/rfapi/bgp_rfapi_cfg.c b/bgpd/rfapi/bgp_rfapi_cfg.c index e4e6760612..05e057f07f 100644 --- a/bgpd/rfapi/bgp_rfapi_cfg.c +++ b/bgpd/rfapi/bgp_rfapi_cfg.c @@ -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));  } diff --git a/bgpd/rfapi/rfapi_import.c b/bgpd/rfapi/rfapi_import.c index 904d43c65a..6b37073e0e 100644 --- a/bgpd/rfapi/rfapi_import.c +++ b/bgpd/rfapi/rfapi_import.c @@ -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; diff --git a/bgpd/rfapi/rfapi_rib.c b/bgpd/rfapi/rfapi_rib.c index 520cc141c0..8e8acbfb91 100644 --- a/bgpd/rfapi/rfapi_rib.c +++ b/bgpd/rfapi/rfapi_rib.c @@ -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));  } diff --git a/bgpd/rfapi/rfapi_vty.c b/bgpd/rfapi/rfapi_vty.c index 04ddff934d..ea82c254bc 100644 --- a/bgpd/rfapi/rfapi_vty.c +++ b/bgpd/rfapi/rfapi_vty.c @@ -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); diff --git a/bgpd/rfp-example/librfp/rfp_example.c b/bgpd/rfp-example/librfp/rfp_example.c index e8f670cf12..060fc76550 100644 --- a/bgpd/rfp-example/librfp/rfp_example.c +++ b/bgpd/rfp-example/librfp/rfp_example.c @@ -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 */ diff --git a/bgpd/rfp-example/rfptest/rfptest.c b/bgpd/rfp-example/rfptest/rfptest.c index 48df6c0cc7..1036829b89 100644 --- a/bgpd/rfp-example/rfptest/rfptest.c +++ b/bgpd/rfp-example/rfptest/rfptest.c @@ -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);  | 
