From 83b36449abb4c2903ef3b40b46018240633989e0 Mon Sep 17 00:00:00 2001 From: Lars Ellenberg Date: Fri, 18 Sep 2020 17:59:07 +0200 Subject: [PATCH] use standard %lld instead of non-standard %Ld format specifier closes #25 --- checktxt.c | 4 ++-- update.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checktxt.c b/checktxt.c index 83990e9..9a522d5 100644 --- a/checktxt.c +++ b/checktxt.c @@ -49,7 +49,7 @@ const char *csync_genchecktxt(const struct stat *st, const char *filename, int i 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 @@ const char *csync_genchecktxt(const struct stat *st, const char *filename, int i 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"); diff --git a/update.c b/update.c index 0779ca2..306a5de 100644 --- a/update.c +++ b/update.c @@ -469,7 +469,7 @@ auto_resolve_entry_point: 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);