From a99693efa30139c7d5ce42cdb32618fe24b99234 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 25 Feb 2011 18:40:30 +0100 Subject: sqlite3: use continue instead of goto in sqlite3_interp() Use continue instead of goto inside loop. I don't need to scroll up and down in the code to know what the jump is performing. I think this improve code readability. It's a comestic cleanup, of course. Signed-off-by: Pablo Neira Ayuso --- output/sqlite3/ulogd_output_SQLITE3.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/output/sqlite3/ulogd_output_SQLITE3.c b/output/sqlite3/ulogd_output_SQLITE3.c index 0de8145..65e320b 100644 --- a/output/sqlite3/ulogd_output_SQLITE3.c +++ b/output/sqlite3/ulogd_output_SQLITE3.c @@ -151,7 +151,8 @@ sqlite3_interp(struct ulogd_pluginstance *pi) if (f->key == NULL || !IS_VALID(*k_ret)) { sqlite3_bind_null(priv->p_stmt, i); - goto next_field; + i++; + continue; } switch (f->key->type) { @@ -221,8 +222,6 @@ sqlite3_interp(struct ulogd_pluginstance *pi) ulogd_log(ULOGD_NOTICE, "unknown type %d for %s\n", f->key->type, f->key->name); } - - next_field: i++; } -- cgit v1.2.3