Browse Source

- compilation fixes for gcc 4.0

Jan Janak 20 years ago
parent
commit
a7985cf615
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/db_postgres/dbase.c

+ 1 - 1
modules/db_postgres/dbase.c

@@ -242,7 +242,7 @@ db_con_t *db_init(const char* _sqlurl)
 	*/
 	res = aug_alloc(sizeof(db_con_t), 0);
 	memset(res, 0, sizeof(db_con_t));
-	(struct con_postgres*)res->tail = aug_alloc(sizeof(struct con_postgres), (char*)res);
+	res->tail = aug_alloc(sizeof(struct con_postgres), (char*)res);
 	memset((struct con_postgres*)res->tail, 0, sizeof(struct con_postgres));
 
 	if (connect_db(res, _sqlurl) < 0)