Explorar o código

- removed -p port && extended -l to support the same syntax as listen= :
-l [proto:]addr[:port] where proto=udp|tcp (default all),
and addr=ip_addr|host|interface_name.
E.g.: -l localhost, -l tcp:127.0.0.1 -l udp:[::1]:5062, -l eth0,
-l tcp:xl1:5090
- mysql: fixed minor warning

Andrei Pelinescu-Onciul %!s(int64=21) %!d(string=hai) anos
pai
achega
738c6a416d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/db_mysql/dbase.c

+ 1 - 1
modules/db_mysql/dbase.c

@@ -231,7 +231,7 @@ db_con_t* db_init(const char* _url)
 	}
 	memset(res, 0, sizeof(db_con_t) + sizeof(struct my_con*));
 
-	(struct my_con*)res->tail = get_connection(_url);
+	res->tail = (unsigned long)get_connection(_url);
 
 	if (!res->tail) {
 		LOG(L_ERR, "db_init(): Could not create a connection\n");