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 /tests/lib | |
parent | Merge pull request #3508 from chiragshah6/evpn_dev2 (diff) | |
download | frr-4d762f2607f07b55f464bae4ec0eb7fdf7c656a9.tar.xz frr-4d762f2607f07b55f464bae4ec0eb7fdf7c656a9.zip |
Treewide: use ANSI function definitions
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/test_heavy.c | 4 | ||||
-rw-r--r-- | tests/lib/test_heavy_thread.c | 2 | ||||
-rw-r--r-- | tests/lib/test_heavy_wq.c | 4 | ||||
-rw-r--r-- | tests/lib/test_table.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/test_heavy.c b/tests/lib/test_heavy.c index e2a0a2d49..afc7a08e6 100644 --- a/tests/lib/test_heavy.c +++ b/tests/lib/test_heavy.c @@ -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(); } diff --git a/tests/lib/test_heavy_thread.c b/tests/lib/test_heavy_thread.c index b3c6e4c2f..d516ed0de 100644 --- a/tests/lib/test_heavy_thread.c +++ b/tests/lib/test_heavy_thread.c @@ -122,7 +122,7 @@ DEFUN (clear_foo, return CMD_SUCCESS; } -void test_init() +void test_init(void) { install_element(VIEW_NODE, &clear_foo_cmd); } diff --git a/tests/lib/test_heavy_wq.c b/tests/lib/test_heavy_wq.c index 00ddc836d..442b8c838 100644 --- a/tests/lib/test_heavy_wq.c +++ b/tests/lib/test_heavy_wq.c @@ -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(); diff --git a/tests/lib/test_table.c b/tests/lib/test_table.c index 2c2a01053..2b6504062 100644 --- a/tests/lib/test_table.c +++ b/tests/lib/test_table.c @@ -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"); |