Procházet zdrojové kódy

avp(s): tm: gcc-2.9x warning fixes (%zd)

- %zd is not supported in the format string for gcc < 3.0
Andrei Pelinescu-Onciul před 16 roky
rodič
revize
91eadbeda4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      modules_s/avp/avp.c

+ 1 - 1
modules_s/avp/avp.c

@@ -1603,7 +1603,7 @@ static int select_attr_fixup(str* res, select_t* s, struct sip_msg* msg)
 		DEBUG("fix up for attribute '%.*s'\n", STR_FMT(&attr_name));
 
 		if (! (avp_ident = pkg_malloc(sizeof(avp_ident_t)))) {
-			ERR("out of mem; requested: %zd.\n", sizeof(avp_ident_t));
+			ERR("out of mem; requested: %d.\n", (int)sizeof(avp_ident_t));
 			return -1;
 		}
 		memset(avp_ident, 0, sizeof(avp_ident_t));