From: Mathieu Parent Date: Tue, 25 May 2010 07:29:01 +0000 (+0200) Subject: Skinny: size_t has different sizes on different platforms X-Git-Tag: v1.2-rc1~843 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2ceff147152c1dd0489f17d7601a7c6994b40e3;p=thirdparty%2Ffreeswitch.git Skinny: size_t has different sizes on different platforms Resolve (shouldn't) MODSKINNY-5: Compiling mod_skinny on Mac OS X 10.6.3 fails with error message about format mismatch of 'long unsigned int' --- diff --git a/src/mod/endpoints/mod_skinny/skinny_protocol.h b/src/mod/endpoints/mod_skinny/skinny_protocol.h index c330ebd017..db1507a71a 100644 --- a/src/mod/endpoints/mod_skinny/skinny_protocol.h +++ b/src/mod/endpoints/mod_skinny/skinny_protocol.h @@ -629,7 +629,7 @@ char* skinny_codec2string(enum skinny_codecs skinnycodec); #define skinny_check_data_length(message, len) \ if (message->length < len+4) {\ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,\ - "Received Too Short Skinny Message %s (type=%x,length=%d), expected %d.\n",\ + "Received Too Short Skinny Message %s (type=%x,length=%d), expected %" SWITCH_SIZE_T_FMT ".\n",\ skinny_message_type2str(request->type), request->type, request->length,\ len+4);\ return SWITCH_STATUS_FALSE;\