diff options
author | Corey Farrell <git@cfware.com> | 2017-11-18 22:13:32 -0500 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-11-18 21:15:56 -0600 |
commit | ef4dc43a756c61defa8c6cc93025725924e2285c (patch) | |
tree | 954253f502b9c982d3294910950c0e628ff653ed /tests/test_pbx.c | |
parent | 8fdc7fd1d3e77ae171671231e318d15710a0f715 (diff) |
tests: Fix warnings found on Mac.
test_pbx used raise without explicitly including signal.h. On Mac for
some reason nothing else includes it.
test_logger checked if an unsigned int was negative. Switch the
variable to 'int' so that error check can be effective.
Change-Id: Ie1db5dd1818ac25cc2ae41b644f848b5865b1362
Diffstat (limited to 'tests/test_pbx.c')
-rw-r--r-- | tests/test_pbx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_pbx.c b/tests/test_pbx.c index 00fa41130..155bec9bf 100644 --- a/tests/test_pbx.c +++ b/tests/test_pbx.c @@ -37,6 +37,8 @@ #include "asterisk/pbx.h" #include "asterisk/test.h" +#include <signal.h> + /*! * If we determine that we really need * to be able to register more than 10 |