[asterisk-commits] mjordan: trunk r428974 - in /trunk: ./ main/test.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Dec 4 11:13:51 CST 2014
Author: mjordan
Date: Thu Dec 4 11:13:48 2014
New Revision: 428974
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428974
Log:
main/test: Fix compilation issue on 32-bit systems
On a 32-bit system, a type of intmax_t will result in a compilation warning
when formatted as a 'long int'. Use the format specifier of %jd (which was
what was used originally in manager.c) to format the JSON extracted integer
on both 32-/64-bit systems.
........
Merged revisions 428972 from http://svn.asterisk.org/svn/asterisk/branches/12
........
Merged revisions 428973 from http://svn.asterisk.org/svn/asterisk/branches/13
Modified:
trunk/ (props changed)
trunk/main/test.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.
Modified: trunk/main/test.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/test.c?view=diff&rev=428974&r1=428973&r2=428974
==============================================================================
--- trunk/main/test.c (original)
+++ trunk/main/test.c Thu Dec 4 11:13:48 2014
@@ -1035,7 +1035,7 @@
ast_json_string_get(ast_json_object_get(blob, "appfile")));
ast_str_append(&packet_string, 0, "AppFunction: %s\r\n",
ast_json_string_get(ast_json_object_get(blob, "appfunction")));
- ast_str_append(&packet_string, 0, "AppLine: %ld\r\n",
+ ast_str_append(&packet_string, 0, "AppLine: %jd\r\n",
ast_json_integer_get(ast_json_object_get(blob, "line")));
ast_str_append(&packet_string, 0, "%s\r\n",
ast_json_string_get(ast_json_object_get(blob, "data")));
More information about the asterisk-commits
mailing list