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-02-20 22:30:54 +0100
commit0a793ebc6059f4354c62ccec62ef7c950988ca4a (patch)
treeff9f03cbfaae14a16751a73463aeb4f6f2c29d42 /test/birdtest.c
parent8bdb05edb2b4e1d2989ed98d67992047ad69443c (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 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;