Skip to content

Commit 83b3644

Browse files
committed
use standard %lld instead of non-standard %Ld format specifier
closes #25
1 parent 1197d32 commit 83b3644

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

checktxt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const char *csync_genchecktxt(const struct stat *st, const char *filename, int i
4949
xxprintf("v1");
5050

5151
if ( !S_ISLNK(st->st_mode) && !S_ISDIR(st->st_mode) )
52-
xxprintf(":mtime=%Ld", ign_mtime ? (long long)0 : (long long)st->st_mtime);
52+
xxprintf(":mtime=%lld", ign_mtime ? (long long)0 : (long long)st->st_mtime);
5353

5454
if ( !csync_ignore_mod )
5555
xxprintf(":mode=%d", (int)st->st_mode);
@@ -61,7 +61,7 @@ const char *csync_genchecktxt(const struct stat *st, const char *filename, int i
6161
xxprintf(":gid=%d", (int)st->st_gid);
6262

6363
if ( S_ISREG(st->st_mode) )
64-
xxprintf(":type=reg:size=%Ld", (long long)st->st_size);
64+
xxprintf(":type=reg:size=%lld", (long long)st->st_size);
6565

6666
if ( S_ISDIR(st->st_mode) )
6767
xxprintf(":type=dir");

update.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ enum connection_response csync_update_file_mod(const char *peername,
469469

470470
skip_action:
471471
if ( !S_ISLNK(st.st_mode) ) {
472-
conn_printf("SETIME %s %s %Ld\n",
472+
conn_printf("SETIME %s %s %lld\n",
473473
url_encode(key), url_encode(filename),
474474
(long long)st.st_mtime);
475475
last_conn_status = read_conn_status(filename, peername);

0 commit comments

Comments
 (0)