[asterisk-commits] mjordan: branch 12 r400812 - /branches/12/res/res_pjsip_header_funcs.c

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


Author: mjordan
Date: Wed Oct  9 06:00:47 2013
New Revision: 400812

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400812
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.

Modified:
    branches/12/res/res_pjsip_header_funcs.c

Modified: branches/12/res/res_pjsip_header_funcs.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_header_funcs.c?view=diff&rev=400812&r1=400811&r2=400812
==============================================================================
--- branches/12/res/res_pjsip_header_funcs.c (original)
+++ branches/12/res/res_pjsip_header_funcs.c Wed Oct  9 06:00:47 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