Browse Source

p_usrloc: casted parameter to int to get rid of compile warning

Daniel-Constantin Mierla 14 years ago
parent
commit
d98db9d2b9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      modules_k/p_usrloc/ul_db_handle.c

+ 2 - 1
modules_k/p_usrloc/ul_db_handle.c

@@ -617,7 +617,8 @@ int load_data(db_func_t * dbf, db1_con_t * dbh, ul_db_handle_t * handle, int id)
 			goto ret;
 		}
 		if(strlen((char *)VAL_STRING(ROW_VALUES(row) + 1)) >= (UL_DB_URL_LEN - 1)){
-			LM_ERR("weird: very large URL (%d Bytes)\n", strlen((char *)VAL_STRING(ROW_VALUES(row) + 1)) + 1);
+			LM_ERR("weird: very large URL (%d Bytes)\n",
+					(int)(strlen((char *)VAL_STRING(ROW_VALUES(row) + 1)) + 1));
 			ret = -1;
 			goto ret;
 		}