X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/56014c8c0ab087e42e227f29f9c53fcdc07d2b03..1c8162a921cbae803b3bf375fda4aa7916bcfc68:/io.c diff --git a/io.c b/io.c index f6302fc2..064bf3b6 100644 --- a/io.c +++ b/io.c @@ -473,8 +473,8 @@ static int read_unbuffered(int fd, char *buf, size_t len) } if (remaining > sizeof(line) - 1) { - rprintf(FERROR, "multiplexing overflow %d\n\n", - remaining); + rprintf(FERROR, "multiplexing overflow %ld\n\n", + (long)remaining); exit_cleanup(RERR_STREAMIO); } @@ -524,7 +524,6 @@ int32 read_int(int f) int64 read_longint(int f) { - extern int remote_version; int64 ret; char b[8]; ret = read_int(f); @@ -537,10 +536,8 @@ int64 read_longint(int f) rprintf(FERROR,"Integer overflow - attempted 64 bit offset\n"); exit_cleanup(RERR_UNSUPPORTED); #else - if (remote_version >= 16) { - readfd(f,b,8); - ret = IVAL(b,0) | (((int64)IVAL(b,4))<<32); - } + readfd(f,b,8); + ret = IVAL(b,0) | (((int64)IVAL(b,4))<<32); #endif return ret; @@ -797,10 +794,9 @@ void write_int_named(int f, int32 x, const char *phase) */ void write_longint(int f, int64 x) { - extern int remote_version; char b[8]; - if (remote_version < 16 || x <= 0x7FFFFFFF) { + if (x <= 0x7FFFFFFF) { write_int(f, (int)x); return; }