aboutsummaryrefslogtreecommitdiffstats
path: root/checksum.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-10-13 21:07:46 -0700
committerWayne Davison <wayned@samba.org>2009-10-13 21:10:57 -0700
commitdf6350a8b83a9e669f5e5c822bf2dc929526a128 (patch)
tree5031bf611e183a04609ca1c4ef99fcfc138d2b23 /checksum.c
parent7a7810aa2f14476d319eee537ba69bfe21d3a926 (diff)
downloadandroid_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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/checksum.c b/checksum.c
index 811b5b60..90d6ee3a 100644
--- a/checksum.c
+++ b/checksum.c
@@ -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);