فهرست منبع

- fixed 64bits compiling: sizeof() returns long type!

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@3933 689a6050-402a-0410-94f2-e92a70836424
Bogdan-Andrei Iancu 17 سال پیش
والد
کامیت
62ae4afea7
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      modules_k/db_text/dbt_api.c

+ 2 - 1
modules_k/db_text/dbt_api.c

@@ -75,7 +75,8 @@ static int dbt_get_columns(db_con_t* _h, db_res_t* _r)
 			db_free_columns(_r);
 			return -4;
 		}
-		LM_DBG("allocate %d bytes for RES_NAMES[%d] at %p", sizeof(str), col,
+		LM_DBG("allocate %d bytes for RES_NAMES[%d] at %p",
+				(int)sizeof(str), col,
 				RES_NAMES(_r)[col]);
 		RES_NAMES(_r)[col]->s = DBT_CON_RESULT(_h)->colv[col].name.s;
 		RES_NAMES(_r)[col]->len = DBT_CON_RESULT(_h)->colv[col].name.len;