[packages/telepathy-logger] - more time_t fixes
baggins
baggins at pld-linux.org
Sun Sep 7 14:04:46 CEST 2025
commit 58a9d058747930f4dc52253caab731247b94e8cf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Sep 7 16:04:36 2025 +0200
- more time_t fixes
time_t.patch | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
---
diff --git a/time_t.patch b/time_t.patch
index 2562217..5838bce 100644
--- a/time_t.patch
+++ b/time_t.patch
@@ -1,5 +1,5 @@
---- /home/users/baggins/rpm/BUILD/telepathy-logger-0.8.2-build/telepathy-logger-0.8.2/src/telepathy-logger.c.orig 2015-04-17 17:04:17.000000000 +0200
-+++ /home/users/baggins/rpm/BUILD/telepathy-logger-0.8.2-build/telepathy-logger-0.8.2/src/telepathy-logger.c 2025-09-07 15:45:50.849995802 +0200
+--- telepathy-logger-0.8.2/src/telepathy-logger.c.orig 2015-04-17 17:04:17.000000000 +0200
++++ telepathy-logger-0.8.2/src/telepathy-logger.c 2025-09-07 15:45:50.849995802 +0200
@@ -67,7 +67,8 @@
struct tm tm;
@@ -10,3 +10,27 @@
strftime (now_str, 32, "%Y-%m-%d %H:%M:%S", &tm);
tmp = g_strdup_printf ("%s.%06ld: %s",
now_str, now.tv_usec, message);
+--- telepathy-logger-0.8.2/tests/dbus/test-log-manager.c~ 2015-04-28 18:47:35.000000000 +0200
++++ telepathy-logger-0.8.2/tests/dbus/test-log-manager.c 2025-09-07 16:03:27.769995795 +0200
+@@ -70,7 +70,8 @@
+ struct tm tm;
+
+ g_get_current_time (&now);
+- localtime_r (&(now.tv_sec), &tm);
++ time_t sec = now.tv_sec;
++ localtime_r (&sec, &tm);
+ strftime (now_str, 32, "%Y-%m-%d %H:%M:%S", &tm);
+ tmp = g_strdup_printf ("%s.%06ld: %s",
+ now_str, now.tv_usec, message);
+--- telepathy-logger-0.8.2/tests/dbus/test-tpl-log-store-pidgin.c~ 2015-04-28 18:46:29.000000000 +0200
++++ telepathy-logger-0.8.2/tests/dbus/test-tpl-log-store-pidgin.c 2025-09-07 16:04:04.976662454 +0200
+@@ -76,7 +76,8 @@
+ struct tm tm;
+
+ g_get_current_time (&now);
+- localtime_r (&(now.tv_sec), &tm);
++ time_t sec = now.tv_sec;
++ localtime_r (&sec, &tm);
+ strftime (now_str, 32, "%Y-%m-%d %H:%M:%S", &tm);
+ tmp = g_strdup_printf ("%s.%06ld: %s",
+ now_str, now.tv_usec, message);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/telepathy-logger.git/commitdiff/58a9d058747930f4dc52253caab731247b94e8cf
More information about the pld-cvs-commit
mailing list