Browse code

- port from opensips r4526, credits goes to bogdan - 64bits compile warnings fixed

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4618 689a6050-402a-0410-94f2-e92a70836424

Henning Westerholt authored on 06/08/2008 15:32:44
Showing 1 changed files
... ...
@@ -75,8 +75,8 @@ int db_mysql_get_columns(const db_con_t* _h, db_res_t* _r)
75 75
 			db_free_columns(_r);
76 76
 			return -4;
77 77
 		}
78
-		LM_DBG("allocate %d bytes for RES_NAMES[%d] at %p\n", sizeof(str), col,
79
-				RES_NAMES(_r)[col]);
78
+		LM_DBG("allocate %lu bytes for RES_NAMES[%d] at %p\n",
79
+				(unsigned long)sizeof(str), col, RES_NAMES(_r)[col]);
80 80
 
81 81
 		/* The pointer that is here returned is part of the result structure. */
82 82
 		RES_NAMES(_r)[col]->s = fields[col].name;