summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2013-03-20 00:03:35 +0100
committerEric Leblond <eric@regit.org>2013-05-21 19:55:18 +0200
commit1d84cdeaa56fe003c4beb0452c8bc476ecfd75a8 (patch)
treeeeb829221d3964ddc55187a1a1a4c0ec3130e0f1 /include
parent5d3a5e5c2e16555a19e794341ed72cf2415b07fc (diff)
db: use offset instead of direct pointer.
Use an offset approach to get the start of values printing area. It is more generic and will be use soon.
Diffstat (limited to 'include')
-rw-r--r--include/ulogd/db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ulogd/db.h b/include/ulogd/db.h
index a02afb5..82f37b9 100644
--- a/include/ulogd/db.h
+++ b/include/ulogd/db.h
@@ -29,7 +29,7 @@ struct db_stmt {
struct db_instance {
char *stmt; /* buffer for our insert statement */
- char *stmt_val; /* pointer to the beginning of the "VALUES" part */
+ int stmt_offset; /* offset to the beginning of the "VALUES" part */
char *schema;
time_t reconnect;
int (*interp)(struct ulogd_pluginstance *upi);