From: Wayne Davison Date: Sun, 24 May 2020 09:04:14 +0000 (-0700) Subject: Fix some warnings. X-Git-Tag: v3.2.0pre1~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741d5f10c6e95d12dd0fc1d7551c525a67f20932;p=thirdparty%2Frsync.git Fix some warnings. --- diff --git a/byteorder.h b/byteorder.h index efc43cbe..5684d2de 100644 --- a/byteorder.h +++ b/byteorder.h @@ -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 */