diff options
author | Martin Pool <mbp@samba.org> | 2002-01-25 23:07:33 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-25 23:07:33 +0000 |
commit | a261989cda6f671352e6323f11d2d98e923c622e (patch) | |
tree | b53a6d9d6b0cc12baab44a7e74395e9808266b40 /receiver.c | |
parent | 7b5c3eb05efb0d67348c92d81da599c64e0c03db (diff) | |
download | rsync-a261989cda6f671352e6323f11d2d98e923c622e.tar.gz |
More signedness fixes; should be harmless.
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -249,7 +249,7 @@ static int receive_data(int f_in,struct map_struct *buf,int fd,char *fname, i = -(i+1); offset2 = i*(OFF_T)n; len = n; - if (i == count-1 && remainder != 0) + if (i == (int) count-1 && remainder != 0) len = remainder; stats.matched_data += len; @@ -265,7 +265,7 @@ static int receive_data(int f_in,struct map_struct *buf,int fd,char *fname, sum_update(map,len); } - if (fd != -1 && write_file(fd,map,len) != len) { + if (fd != -1 && write_file(fd,map,len) != (int) len) { rprintf(FERROR,"write failed on %s : %s\n", fname,strerror(errno)); exit_cleanup(RERR_FILEIO); |