diff options
author | Wayne Davison <wayned@samba.org> | 2009-10-13 21:07:46 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-10-13 21:10:57 -0700 |
commit | df6350a8b83a9e669f5e5c822bf2dc929526a128 (patch) | |
tree | 5031bf611e183a04609ca1c4ef99fcfc138d2b23 /checksum.c | |
parent | 7a7810aa2f14476d319eee537ba69bfe21d3a926 (diff) | |
download | android_external_rsync-df6350a8b83a9e669f5e5c822bf2dc929526a128.tar.gz android_external_rsync-df6350a8b83a9e669f5e5c822bf2dc929526a128.tar.bz2 android_external_rsync-df6350a8b83a9e669f5e5c822bf2dc929526a128.zip |
Avoid type-punned compiler warnings for the byteorder.h macros
by using inline functions for the 4-char <-> uint32 conversions.
Diffstat (limited to 'checksum.c')
-rw-r--r-- | checksum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ void get_checksum2(char *buf, int32 len, char *sum) md5_begin(&m); md5_update(&m, (uchar *)buf, len); if (checksum_seed) { - SIVAL(seedbuf, 0, checksum_seed); + SIVALu(seedbuf, 0, checksum_seed); md5_update(&m, seedbuf, 4); } md5_result(&m, (uchar *)sum); |