aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/csync2/longlong-format.patch
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/csync2/longlong-format.patch')
-rw-r--r--unmaintained/csync2/longlong-format.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/unmaintained/csync2/longlong-format.patch b/unmaintained/csync2/longlong-format.patch
new file mode 100644
index 0000000000..a37488d7de
--- /dev/null
+++ b/unmaintained/csync2/longlong-format.patch
@@ -0,0 +1,31 @@
+--- old/checktxt.c
++++ new/checktxt.c
+@@ -49,7 +49,7 @@
+ xxprintf("v1");
+
+ if ( !S_ISLNK(st->st_mode) && !S_ISDIR(st->st_mode) )
+- xxprintf(":mtime=%Ld", ign_mtime ? (long long)0 : (long long)st->st_mtime);
++ xxprintf(":mtime=%lld", ign_mtime ? (long long)0 : (long long)st->st_mtime);
+
+ if ( !csync_ignore_mod )
+ xxprintf(":mode=%d", (int)st->st_mode);
+@@ -61,7 +61,7 @@
+ xxprintf(":gid=%d", (int)st->st_gid);
+
+ if ( S_ISREG(st->st_mode) )
+- xxprintf(":type=reg:size=%Ld", (long long)st->st_size);
++ xxprintf(":type=reg:size=%lld", (long long)st->st_size);
+
+ if ( S_ISDIR(st->st_mode) )
+ xxprintf(":type=dir");
+--- old/update.c
++++ new/update.c
+@@ -469,7 +469,7 @@
+
+ skip_action:
+ if ( !S_ISLNK(st.st_mode) ) {
+- conn_printf("SETIME %s %s %Ld\n",
++ conn_printf("SETIME %s %s %lld\n",
+ url_encode(key), url_encode(filename),
+ (long long)st.st_mtime);
+ last_conn_status = read_conn_status(filename, peername);