diff options
author | Joshua Colp <jcolp@digium.com> | 2017-11-20 11:32:51 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-11-20 11:32:51 -0600 |
commit | 0e6e1fcc4d78e258f502aacc0f409e25887e4290 (patch) | |
tree | f2df1877ca64000a2c82519fd040ce97ca39202e | |
parent | 56d85fd2c54dde791ed9275b39e1f8b3f67c2b11 (diff) | |
parent | 75cb4037753b83e7623067eafece2031ae340486 (diff) |
Merge "tests: Fix warnings found on Mac."
-rw-r--r-- | tests/test_logger.c | 4 | ||||
-rw-r--r-- | tests/test_pbx.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_logger.c b/tests/test_logger.c index 59ee3e6c1..6cbddb9c0 100644 --- a/tests/test_logger.c +++ b/tests/test_logger.c @@ -190,7 +190,7 @@ static char *handle_cli_performance_test(struct ast_cli_entry *e, int cmd, struc static char *handle_cli_queue_test(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) { - unsigned int level; + int level; int current_queue_limit; unsigned int x; struct timeval start, end; @@ -220,7 +220,7 @@ static char *handle_cli_queue_test(struct ast_cli_entry *e, int cmd, struct ast_ ast_cli(a->fd, "Test: Failed, could not register level 'queuetest'.\n"); return CLI_SUCCESS; } - ast_cli(a->fd, "Test: got level %u for 'queuetest'.\n", level); + ast_cli(a->fd, "Test: got level %d for 'queuetest'.\n", level); if (ast_logger_create_channel(tmppath, "queuetest") != AST_LOGGER_SUCCESS) { ast_cli(a->fd, "Test: Unable to create logger channel '%s'\n", tmppath); 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 |