25 lines
761 B
Plaintext
25 lines
761 B
Plaintext
$OpenBSD: patch-libedataserver_e-debug-log_c,v 1.2 2011/12/29 09:23:19 ajacoutot Exp $
|
|
|
|
e-debug-log.c:172: warning: passing argument 1 of 'localtime' from incompatible pointer type
|
|
|
|
--- libedataserver/e-debug-log.c.orig Mon Sep 19 07:03:01 2011
|
|
+++ libedataserver/e-debug-log.c Thu Dec 29 09:17:10 2011
|
|
@@ -160,6 +160,7 @@ e_debug_logv (gboolean is_milestone,
|
|
gchar *debug_str;
|
|
struct timeval tv;
|
|
struct tm tm;
|
|
+ time_t tmp;
|
|
|
|
lock ();
|
|
|
|
@@ -169,7 +170,8 @@ e_debug_logv (gboolean is_milestone,
|
|
str = g_strdup_vprintf (format, args);
|
|
gettimeofday (&tv, NULL);
|
|
|
|
- tm = *localtime (&tv.tv_sec);
|
|
+ tmp = tv.tv_sec;
|
|
+ tm = *localtime (&tmp);
|
|
|
|
debug_str = g_strdup_printf ("%p;%04d/%02d/%02d;%02d:%02d:%02d.%04d;(%s);%s",
|
|
g_thread_self (),
|