aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csync2/longlong-format.patch
blob: a37488d7de6c1729863b472d75bb2fa3f6294123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);