[Asterisk-code-review] taskprocessor.c: Fix printf type mismatch (...asterisk[13])
Richard Mudgett
asteriskteam at digium.com
Thu Mar 14 11:56:04 CDT 2019
Richard Mudgett has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/11151
Change subject: taskprocessor.c: Fix printf type mismatch
......................................................................
taskprocessor.c: Fix printf type mismatch
A size_t is not always an unsigned long.
* Cast the AST_VECTOR_SIZE() to an unsigned long to match the ast_cli()
printf format string.
Change-Id: Ib102dd36bbe6c2a7a4ce6870ae9110d978dd7e98
---
M main/taskprocessor.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/51/11151/1
diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index 9c04edd..e584f23 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -716,7 +716,8 @@
ast_cli(a->fd, FMT_FIELDS_SUBSYSTEM, alert->subsystem, alert->alert_count);
}
- ast_cli(a->fd, "\n%lu subsystems\n\n", AST_VECTOR_SIZE(&sorted_subsystems));
+ ast_cli(a->fd, "\n%lu subsystems\n\n",
+ (unsigned long) AST_VECTOR_SIZE(&sorted_subsystems));
AST_VECTOR_CALLBACK_VOID(&sorted_subsystems, ast_free);
AST_VECTOR_FREE(&sorted_subsystems);
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11151
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: Ib102dd36bbe6c2a7a4ce6870ae9110d978dd7e98
Gerrit-Change-Number: 11151
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190314/b23c9638/attachment.html>
More information about the asterisk-code-review
mailing list