mkhash: fix build errors on FreeBSD 13.0
[openwrt/staging/hauke.git] / scripts / mkhash.c
index ed3d42d4c35c2dc6d8c165fc386c4be8f90d77bf..a28d5fd5372ff396d7c289e64a8a36345b1a05d0 100644 (file)
@@ -105,7 +105,6 @@ be32enc(void *buf, uint32_t u)
        p[2] = ((uint8_t) ((u >> 8) & 0xff));
        p[3] = ((uint8_t) (u & 0xff));
 }
-#endif
 
 static void
 be64enc(void *buf, uint64_t u)
@@ -132,6 +131,7 @@ be32dec(const void *buf)
 
        return (((uint32_t) be16dec(p)) << 16) | be16dec(p + 2);
 }
+#endif
 
 #define MD5_DIGEST_LENGTH      16