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_logger.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_logger.c')
-rw-r--r-- | tests/test_logger.c | 4 |
1 files changed, 2 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); |