projects/aports·blob master · refs

48 lines · 1.6 KiB

1From 83b36449abb4c2903ef3b40b46018240633989e0 Mon Sep 17 00:00:00 2001
2From: Lars Ellenberg <[email protected]>
3Date: Fri, 18 Sep 2020 17:59:07 +0200
4Subject: [PATCH] use standard %lld instead of non-standard %Ld format
5 specifier
6
7closes #25
8---
9 checktxt.c | 4 ++--
10 update.c | 2 +-
11 2 files changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/checktxt.c b/checktxt.c
14index 83990e9..9a522d5 100644
15--- a/checktxt.c
16+++ b/checktxt.c
17@@ -49,7 +49,7 @@ const char *csync_genchecktxt(const struct stat *st, const char *filename, int i
18 xxprintf("v1");
19
20 if ( !S_ISLNK(st->st_mode) && !S_ISDIR(st->st_mode) )
21- xxprintf(":mtime=%Ld", ign_mtime ? (long long)0 : (long long)st->st_mtime);
22+ xxprintf(":mtime=%lld", ign_mtime ? (long long)0 : (long long)st->st_mtime);
23
24 if ( !csync_ignore_mod )
25 xxprintf(":mode=%d", (int)st->st_mode);
26@@ -61,7 +61,7 @@ const char *csync_genchecktxt(const struct stat *st, const char *filename, int i
27 xxprintf(":gid=%d", (int)st->st_gid);
28
29 if ( S_ISREG(st->st_mode) )
30- xxprintf(":type=reg:size=%Ld", (long long)st->st_size);
31+ xxprintf(":type=reg:size=%lld", (long long)st->st_size);
32
33 if ( S_ISDIR(st->st_mode) )
34 xxprintf(":type=dir");
35diff --git a/update.c b/update.c
36index 0779ca2..306a5de 100644
37--- a/update.c
38+++ b/update.c
39@@ -469,7 +469,7 @@ auto_resolve_entry_point:
40
41 skip_action:
42 if ( !S_ISLNK(st.st_mode) ) {
43- conn_printf("SETIME %s %s %Ld\n",
44+ conn_printf("SETIME %s %s %lld\n",
45 url_encode(key), url_encode(filename),
46 (long long)st.st_mtime);
47 last_conn_status = read_conn_status(filename, peername);
48