Skip to content

Commit

Permalink
statistics: fix compiler warning in 32-bit environments
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Mar 5, 2014
1 parent a1d61f3 commit 15784be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/statistics/statistics.c
Expand Up @@ -145,7 +145,7 @@ static int fixup_stat(void** param, int param_no)
/* reference to the statistic name */
sp = (struct stat_param *)pkg_malloc(sizeof(struct stat_param));
if (sp==NULL) {
LM_ERR("no more pkg mem (%ld)\n",sizeof(struct stat_param));
LM_ERR("no more pkg mem (%d)\n", (int)sizeof(struct stat_param));

This comment has been minimized.

Copy link
@wdoekes

wdoekes Mar 5, 2014

Contributor

Better yet!

z      A following integer conversion corresponds to a size_t or ssize_t argument.
return E_OUT_OF_MEM;
}
memset( sp, 0 , sizeof(struct stat_param) );
Expand Down

0 comments on commit 15784be

Please sign in to comment.