Module: sip-router Branch: janakj/postgres Commit: a7985cf61570d2835b9b5d88a5904f7d83d207ef URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a7985cf6...
Author: Jan Janak jan@iptel.org Committer: Jan Janak jan@iptel.org Date: Fri Jul 1 08:58:35 2005 +0000
- compilation fixes for gcc 4.0
---
modules/db_postgres/dbase.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/db_postgres/dbase.c b/modules/db_postgres/dbase.c index 253fe8d..21d3e2f 100644 --- a/modules/db_postgres/dbase.c +++ b/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)