diff options
| author | Wayne Davison <wayned@samba.org> | 2006-12-08 21:02:11 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2006-12-08 21:02:11 +0000 |
| commit | 60af946576ba43a94d7adea0ff3b5ef5e9e28e09 (patch) | |
| tree | 5e6dfbc0a2d54c64eb36099fbcc9af80143f149c /flist.c | |
| parent | ca0e8296bcbec60785835f824f7cc4072ac7842b (diff) | |
| download | android_external_rsync-60af946576ba43a94d7adea0ff3b5ef5e9e28e09.tar.gz android_external_rsync-60af946576ba43a94d7adea0ff3b5ef5e9e28e09.tar.bz2 android_external_rsync-60af946576ba43a94d7adea0ff3b5ef5e9e28e09.zip | |
Explicitly cast the length values down to an uint32 so that some
compilers don't complain about the value getting smaller.
Diffstat (limited to 'flist.c')
| -rw-r--r-- | flist.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -644,7 +644,7 @@ static struct file_struct *recv_file_entry(struct file_list *flist, file->flags |= FLAG_HLINKED; #endif file->modtime = modtime; - file->len32 = file_length; + file->len32 = (uint32)file_length; if (file_length > 0xFFFFFFFFu && S_ISREG(mode)) { file->flags |= FLAG_LENGTH64; OPT_EXTRA(file, 0)->unum = (uint32)(file_length >> 32); @@ -921,7 +921,7 @@ struct file_struct *make_file(const char *fname, struct file_list *flist, file->flags = flags; file->modtime = st.st_mtime; - file->len32 = st.st_size; + file->len32 = (uint32)st.st_size; if (st.st_size > 0xFFFFFFFFu && S_ISREG(st.st_mode)) { file->flags |= FLAG_LENGTH64; OPT_EXTRA(file, 0)->unum = (uint32)(st.st_size >> 32); |
