--- 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);