17 lines
426 B
Plaintext
17 lines
426 B
Plaintext
$OpenBSD: patch-src_clock_cpp,v 1.3 2012/03/18 17:09:27 dcoppa Exp $
|
|
|
|
Unbreak compilation
|
|
|
|
--- src/clock.cpp.orig Sat Mar 17 17:04:48 2012
|
|
+++ src/clock.cpp Sun Mar 18 17:49:13 2012
|
|
@@ -135,7 +135,8 @@ void Clock::Update()
|
|
static timeval past = { 0, 0 };
|
|
gettimeofday(&past, 0);
|
|
|
|
- tm *time = localtime(&past.tv_sec);
|
|
+ time_t tmp = past.tv_sec;
|
|
+ tm *time = localtime(&tmp);
|
|
|
|
mask = 0;
|
|
Set(time->tm_sec % 10, 0);
|