Module: sip-router
Branch: master
Commit: 91d70925870aeb8212bb3099d650e32627dd4d97
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=91d7092…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Mon Aug 8 22:43:23 2011 +0200
db_postgres: remove db_int2pg_varbit function, commented out since 2008
---
modules/db_postgres/pg_fld.c | 17 +----------------
1 files changed, 1 insertions(+), 16 deletions(-)
diff --git a/modules/db_postgres/pg_fld.c b/modules/db_postgres/pg_fld.c
index fe64217..76ad4df 100644
--- a/modules/db_postgres/pg_fld.c
+++ b/modules/db_postgres/pg_fld.c
@@ -246,22 +246,6 @@ static inline void db_int2pg_bit(struct pg_params* dst, int i,
db_fld_t* src)
dst->len[i] = 8;
}
-/*
-static inline void db_int2pg_varbit(struct pg_params* dst, int i,
- db_fld_t* src)
-{
- unsigned int len = 32;
- struct pg_fld* pfld = DB_GET_PAYLOAD(src);
-
- pfld->v.int4[0] = htonl(len);
- pfld->v.int4[1] = htonl(src->v.int4);
-
- dst->fmt[i] = 1;
- dst->val[i] = pfld->v.byte;
- dst->len[i] = 4 + len / 8 + (len % 8 ? 1 : 0);
-}
-*/
-
static inline void db_str2pg_string(struct pg_params* dst, int i,
db_fld_t* src)
@@ -271,6 +255,7 @@ static inline void db_str2pg_string(struct pg_params* dst, int i,
dst->len[i] = src->v.lstr.len;
}
+
static inline void db_cstr2pg_string(struct pg_params* dst, int i,
db_fld_t* src)
{