From: Matthew Jordan Date: Wed, 9 Oct 2013 11:00:47 +0000 (+0000) Subject: Use 'z' as the format specifier for size_t X-Git-Tag: 12.0.0-beta2~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7372b09ab9f2fe9868019ec634cde289536f69e5;p=thirdparty%2Fasterisk.git 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@400812 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip_header_funcs.c b/res/res_pjsip_header_funcs.c index 90ca074d08..7425d8f59b 100644 --- a/res/res_pjsip_header_funcs.c +++ b/res/res_pjsip_header_funcs.c @@ -294,7 +294,7 @@ static int read_header(void *obj) 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; }