Browse code

modules/ims_isc: fix several compiler warnings

Camille Oudot authored on 11/06/2013 14:24:15
Showing 1 changed files
... ...
@@ -338,7 +338,7 @@ int isc_mark_write_psu(struct sip_msg *msg, isc_mark *mark) {
338 338
     hlen = psu_hdr_s.len - /* 3 "%.*s" */ 12 + mark->aor.len + regstate->len + sescase->len + 1;
339 339
     hstr = pkg_malloc(hlen);
340 340
     if (hstr == NULL) {
341
-        LM_ERR("isc_mark_write_psu: could not allocate %d bytes\n", hlen);
341
+        LM_ERR("isc_mark_write_psu: could not allocate %zu bytes\n", hlen);
342 342
         return 0;
343 343
     }
344 344
 
... ...
@@ -347,14 +347,14 @@ int isc_mark_write_psu(struct sip_msg *msg, isc_mark *mark) {
347 347
             sescase->len, sescase->s,
348 348
             regstate->len, regstate->s);
349 349
     if (ret >= hlen) {
350
-        LM_ERR("isc_mark_write_psu: invalid string buffer size: %d, required: %d\n", hlen, ret);
350
+        LM_ERR("isc_mark_write_psu: invalid string buffer size: %zu, required: %d\n", hlen, ret);
351 351
         pkg_free(hstr);
352 352
         return 0;
353 353
     }
354 354
 
355
-    LM_DBG("isc_mark_write_psu: %.*s\n", hlen - 3 /* don't print \r\n\0 */, hstr);
355
+    LM_DBG("isc_mark_write_psu: %.*s\n", (int)hlen - 3 /* don't print \r\n\0 */, hstr);
356 356
     if (append_new_lump(&l, hstr, hlen - 1, HDR_OTHER_T) == 0) {
357
-        LM_ERR("isc_mark_write_psu: append_new_lump(%p, \"%.*s\\\r\\n\", %d, 0) failed\n", &l, hlen - 3 /* don't print \r\n\0 */, hstr, hlen - 1);
357
+        LM_ERR("isc_mark_write_psu: append_new_lump(%p, \"%.*s\\\r\\n\", %zu, 0) failed\n", &l, (int)hlen - 3 /* don't print \r\n\0 */, hstr, hlen - 1);
358 358
         pkg_free(hstr);
359 359
         return 0;
360 360
     }