diff options
Diffstat (limited to 'test/birdtest.c')
-rw-r--r-- | test/birdtest.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/birdtest.c b/test/birdtest.c index a4312e9b..347f79b9 100644 --- a/test/birdtest.c +++ b/test/birdtest.c @@ -155,10 +155,7 @@ int bt_run_test_fn(int (*fn)(const void *), const void *fn_arg, int timeout) int result; alarm(timeout); - if (fn_arg) - result = fn(fn_arg); - else - result = ((int (*)(void))fn)(); + result = fn(fn_arg); if (!bt_suite_result) result = 0; |