8003eddd81
Thank you to all who tested: Markus Lude (sparc64), abieber@ (macppc), and Adam Jeanguenat (i386); I also tested on amd64 and i386. Thank you to Rodolfo Gouveia for help/tests on earlier versions, and brad@ for comments on an earlier version. From Markus Lude (maintainer), and includes changes done based on feedback from sthen@ and myself. OK abieber@ sthen@
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
$OpenBSD: patch-src_util_c,v 1.5 2012/09/26 02:11:05 lteo Exp $
|
|
--- src/util.c.orig Sat Mar 17 22:59:47 2012
|
|
+++ src/util.c Sat May 26 15:10:21 2012
|
|
@@ -221,12 +221,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 */
|
|
|
|
@@ -236,7 +237,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;
|