]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix some warnings.
authorWayne Davison <wayne@opencoder.net>
Sun, 24 May 2020 09:04:14 +0000 (02:04 -0700)
committerWayne Davison <wayne@opencoder.net>
Sun, 24 May 2020 09:04:14 +0000 (02:04 -0700)
byteorder.h

index efc43cbe43b20ab0f67b22d4d6e228ae319a9a2d..5684d2de6595a1dc79eed235ef8e434fdf02c7ea 100644 (file)
@@ -56,14 +56,14 @@ SIVALu(uchar *buf, int pos, uint32 val)
 static inline int64
 IVAL64(const char *buf, int pos)
 {
-       return IVALu(buf, pos) | (int64)IVALu(buf, pos + 4) << 32;
+       return IVALu((uchar*)buf, pos) | (int64)IVALu((uchar*)buf, pos + 4) << 32;
 }
 
 static inline void
 SIVAL64(char *buf, int pos, int64 val)
 {
-       SIVALu(buf, pos, val);
-       SIVALu(buf, pos + 4, val >> 32);
+       SIVALu((uchar*)buf, pos, val);
+       SIVALu((uchar*)buf, pos + 4, val >> 32);
 }
 
 #else /* !CAREFUL_ALIGNMENT */