- Tweaked the read_size var (formerly map_size) that gets passed to
map_file().
* and transmits them to the receiver. The sender process runs on the
* machine holding the source files.
**/
* and transmits them to the receiver. The sender process runs on the
* machine holding the source files.
**/
-void read_sum_head(int f, struct sum_struct *sum)
-{
- sum->count = read_int(f);
- sum->blength = read_int(f);
- if (protocol_version < 27) {
- sum->s2length = csum_length;
- } else {
- sum->s2length = read_int(f);
- if (sum->s2length > MD4_SUM_LENGTH) {
- rprintf(FERROR, "Invalid checksum length %ld\n",
- (long)sum->s2length);
- exit_cleanup(RERR_PROTOCOL);
- }
- }
- sum->remainder = read_int(f);
-}
/**
* Receive the checksums for a buffer
/**
* Receive the checksums for a buffer
- OFF_T map_size = MAX((OFF_T)s->blength * 3, MAX_MAP_SIZE);
- mbuf = map_file(fd, st.st_size, map_size, s->blength);
+ int32 read_size = MAX(s->blength * 3, MAX_MAP_SIZE);
+ mbuf = map_file(fd, st.st_size, read_size, s->blength);