$OpenBSD: patch-src_util_c,v 1.7 2013/07/10 02:10:22 lteo Exp $
--- src/util.c.orig	Tue Jun  4 23:19:52 2013
+++ src/util.c	Mon Jul  1 23:00:43 2013
@@ -226,12 +226,13 @@ int DisplayBanner(void)
  * Returns: void function
  *
  ****************************************************************************/
-void ts_print(register const struct timeval *tvp, char *timebuf)
+void ts_print(register const struct sf_timeval32 *tvp, char *timebuf)
 {
     register int s;
     int    localzone;
     time_t Time;
     struct timeval tv;
+    struct sf_timeval32 tvnow;
     struct timezone tz;
     struct tm *lt;    /* place to stick the adjusted clock data */
 
@@ -241,7 +242,9 @@ void ts_print(register const struct timeval *tvp, char
         /* manual page (for linux) says tz is never used, so.. */
         bzero((char *) &tz, sizeof(tz));
         gettimeofday(&tv, &tz);
-        tvp = &tv;
+        tvnow.tv_sec = tv.tv_sec;
+        tvnow.tv_usec = tv.tv_usec;
+        tvp = &tvnow;
     }
 
     localzone = snort_conf->thiszone;
