File: 1003_64time_t.patch

package info (click to toggle)
syncevolution 2.0.0-3.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,864 kB
  • sloc: cpp: 63,872; ansic: 14,604; python: 11,373; xml: 9,152; perl: 1,452; sh: 841; makefile: 320
file content (24 lines) | stat: -rw-r--r-- 854 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
23
24
Description: Fix FTBFS on 32-bit with 64-bit time_t
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1111348

--- syncevolution-2.0.0.orig/src/gtk3-ui/sync-ui.c
+++ syncevolution-2.0.0/src/gtk3-ui/sync-ui.c
@@ -1611,7 +1611,7 @@ restore_clicked_cb (GtkButton *btn, app_
 
 static void
 add_backup (app_data *data, const char *peername, const char *dir,
-            long endtime, GList *sources)
+            time_t endtime, GList *sources)
 {
     GtkWidget *timelabel, *label, *blabel, *button, *box;;
     guint rows;
@@ -1689,7 +1689,7 @@ get_reports_for_backups_cb (SyncevoServe
         GHashTableIter iter;
         char *key, *val;
         /* long status = -1; */
-        long endtime = -1;
+        time_t endtime = -1;
         char *peername = NULL;
         char *dir = NULL;
         GList *backup_sources = NULL;