X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsha1.h;h=3f500b23b43b01e82fbeb7a1732e7f30e9af1fcb;hb=0d4c61e4b3589848bac73c667b2244af7d88ed34;hp=d278aa9251568e037234263b891b777343cd9c77;hpb=f3e97b29c4a8c564d54b0fd11cd43a9b4cd6a8ad;p=wimlib diff --git a/src/sha1.h b/src/sha1.h index d278aa92..3f500b23 100644 --- a/src/sha1.h +++ b/src/sha1.h @@ -4,7 +4,7 @@ #include "config.h" #include #include -#include "string.h" +#include #include "util.h" #define SHA1_HASH_SIZE 20 @@ -47,7 +47,7 @@ is_zero_hash(const u8 hash[SHA1_HASH_SIZE]) { if (hash) for (u8 i = 0; i < SHA1_HASH_SIZE / 4; i++) - if (((u32*)hash)[i]) + if (((const u32*)hash)[i]) return false; return true; }