]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: size_t has different sizes on different platforms
authorMathieu Parent <math.parent@gmail.com>
Tue, 25 May 2010 07:29:01 +0000 (09:29 +0200)
committerMathieu Parent <math.parent@gmail.com>
Tue, 25 May 2010 07:29:01 +0000 (09:29 +0200)
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'

src/mod/endpoints/mod_skinny/skinny_protocol.h

index c330ebd017820ddb400f39a1a3edc651d8c63bdc..db1507a71a25d4f3c1719ecc8163a46b99da7293 100644 (file)
@@ -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;\