File: format-d-expects-argument-of-type-int-but-argument-2-has-.patch

package info (click to toggle)
pidgin-awayonlock 0.5.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168 kB
  • sloc: ansic: 262; python: 19; makefile: 9
file content (22 lines) | stat: -rw-r--r-- 967 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?b?0L3QsNCx?= <nabijaczleweli@nabijaczleweli.xyz>
Date: Mon, 1 Sep 2025 21:02:38 +0200
Subject: format '%d' expects argument of type 'int',
 but argument 2 has type 'time_t' {aka 'long int'}

---
 prefs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/prefs.c b/prefs.c
index f8b9db3..a2cbd39 100644
--- a/prefs.c
+++ b/prefs.c
@@ -50,7 +50,7 @@ PurplePluginPrefFrame *get_prefs_frame(PurplePlugin *plugin) {
 	    statuses = g_list_next(statuses)) {
 		if(! purple_savedstatus_is_transient(statuses->data)) {
 			gchar *creation_time = NULL;
-			creation_time = g_strdup_printf("%d", purple_savedstatus_get_creation_time(statuses->data));
+			creation_time = g_strdup_printf("%lld", (long long)purple_savedstatus_get_creation_time(statuses->data));
 			purple_plugin_pref_add_choice(ppref, (gchar *)purple_savedstatus_get_title(statuses->data), creation_time);
 			/*
 			 * FIXME: memleak! how can we free this after the frame has