summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/db.c5
-rw-r--r--util/printpkt.c2
2 files changed, 1 insertions, 6 deletions
diff --git a/util/db.c b/util/db.c
index 946458a..9b4da8d 100644
--- a/util/db.c
+++ b/util/db.c
@@ -31,6 +31,7 @@
#include <errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <time.h>
#include <ulogd/ulogd.h>
#include <ulogd/db.h>
@@ -62,8 +63,6 @@ static int sql_createstmt(struct ulogd_pluginstance *upi)
{
struct db_instance *mi = (struct db_instance *) upi->private;
unsigned int size;
- char buf[ULOGD_MAX_KEYLEN];
- char *underscore;
int i;
char *table = table_ce(upi->config_kset).u.string;
char *procedure = procedure_ce(upi->config_kset).u.string;
@@ -245,8 +244,6 @@ static int __interp_db(struct ulogd_pluginstance *upi)
}
switch (res->type) {
- char *tmpstr;
- struct in_addr addr;
case ULOGD_RET_INT8:
sprintf(di->stmt_ins, "%d,", res->u.value.i8);
break;
diff --git a/util/printpkt.c b/util/printpkt.c
index 90fec0e..c64a4cb 100644
--- a/util/printpkt.c
+++ b/util/printpkt.c
@@ -276,7 +276,6 @@ static int printpkt_ipv4(struct ulogd_key *res, char *buf)
static int printpkt_ipv6(struct ulogd_key *res, char *buf)
{
char *buf_cur = buf;
- char tmp[INET6_ADDRSTRLEN];
if (pp_is_valid(res, KEY_IP_SADDR))
buf_cur += sprintf(buf_cur, "SRC=%s ",
@@ -353,7 +352,6 @@ int printpkt_arp(struct ulogd_key *res, char *buf)
char *buf_cur = buf;
u_int16_t code = 0;
u_int8_t *mac;
- char tmp[INET_ADDRSTRLEN];
if (pp_is_valid(res, KEY_ARP_SPA))
buf_cur += sprintf(buf_cur, "SRC=%s ",