From 1d84cdeaa56fe003c4beb0452c8bc476ecfd75a8 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 20 Mar 2013 00:03:35 +0100 Subject: 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. --- include/ulogd/db.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.3