]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
cleanup fallout from upstream merge with alert json work
authorTom DeCanio <decanio.tom@gmail.com>
Tue, 22 Oct 2013 11:52:39 +0000 (04:52 -0700)
committerVictor Julien <victor@inliniac.net>
Wed, 29 Jan 2014 10:07:50 +0000 (11:07 +0100)
src/alert-json.c

index d9a023a7266e635eb59b69cdbc2f70cde6d4470c..16d68d201f741c34af5a023eead926f97f9d1de5 100644 (file)
@@ -50,8 +50,6 @@
 #include "alert-json.h"
 
 #include "util-byte.h"
-#include "util-mpm-b2g-cuda.h"
-#include "util-cuda-handlers.h"
 #include "util-privs.h"
 #include "util-print.h"
 #include "util-proto-name.h"
@@ -153,16 +151,6 @@ typedef struct AlertJsonThread_ {
     LogFileCtx* file_ctx;
 } AlertJsonThread;
 
-static void CreateTimeString (const struct timeval *ts, char *str, size_t size) {
-    time_t time = ts->tv_sec;
-    struct tm local_tm;
-    struct tm *t = (struct tm *)SCLocalTime(time, &local_tm);
-
-    snprintf(str, size, "%02d/%02d/%02d-%02d:%02d:%02d.%06u",
-            t->tm_mon + 1, t->tm_mday, t->tm_year + 1900, t->tm_hour,
-            t->tm_min, t->tm_sec, (uint32_t) ts->tv_usec);
-}
-
 TmEcode AlertJsonIPv4(ThreadVars *tv, Packet *p, void *data, PacketQueue *pq, PacketQueue *postpq)
 {
     AlertJsonThread *aft = (AlertJsonThread *)data;