[asterisk-commits] mjordan: trunk r400813 - in /trunk: ./ res/res_pjsip_header_funcs.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 9 06:02:06 CDT 2013


Author: mjordan
Date: Wed Oct  9 06:02:04 2013
New Revision: 400813

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400813
Log:
Use 'z' as the format specifier for size_t

Using 'lu' will produce a compiler warning for some versions of gcc and on some
architectures. 'z' should be portable as a format specifier for size_t.
........

Merged revisions 400812 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/res/res_pjsip_header_funcs.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/res/res_pjsip_header_funcs.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip_header_funcs.c?view=diff&rev=400813&r1=400812&r2=400813
==============================================================================
--- trunk/res/res_pjsip_header_funcs.c (original)
+++ trunk/res/res_pjsip_header_funcs.c Wed Oct  9 06:02:04 2013
@@ -294,7 +294,7 @@
 	plen = strlen(p);
 	if (plen + 1 > data->len) {
 		ast_log(AST_LOG_ERROR,
-				"Buffer isn't big enough to hold header value.  %lu > %lu\n", plen + 1,
+				"Buffer isn't big enough to hold header value.  %zu > %zu\n", plen + 1,
 				data->len);
 		return -1;
 	}




More information about the asterisk-commits mailing list