summaryrefslogtreecommitdiff
path: root/test/birdtest.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-02-08 11:19:04 +0100
committerMaria Matejka <mq@ucw.cz>2019-07-09 14:37:14 +0200
commit1322e205e2066c0da8526bed505dc699d0f5b92a (patch)
tree387c7aeaafd5eccde69e9df851dea3e77d5c0c24 /test/birdtest.c
parentbb001af0e8022f6445ff50b7f32c9ac102cc244e (diff)
Test: Fixed annoying warnings (and possible obscure bugs).
Diffstat (limited to 'test/birdtest.c')
-rw-r--r--test/birdtest.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/birdtest.c b/test/birdtest.c
index d503890a..7b6fb0b5 100644
--- a/test/birdtest.c
+++ b/test/birdtest.c
@@ -149,10 +149,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;