Convert a few more scripts to python3.
[rsync.git] / byteorder.h
index efc43cbe43b20ab0f67b22d4d6e228ae319a9a2d..059cc70864953b564f24b7332343ab230fc28bcb 100644 (file)
@@ -2,7 +2,7 @@
  * Simple byteorder handling.
  *
  * Copyright (C) 1992-1995 Andrew Tridgell
- * Copyright (C) 2007-2019 Wayne Davison
+ * Copyright (C) 2007-2022 Wayne Davison
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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 */
@@ -129,4 +129,3 @@ SIVAL(char *buf, int pos, uint32 val)
 {
        SIVALu((uchar*)buf, pos, val);
 }
-