]> wimlib.net Git - wimlib/blobdiff - src/sha1.h
Win32 apply: Set short names
[wimlib] / src / sha1.h
index 5c231e378ea6d02f82bbebcfaf5e2237b7d9e682..3f500b23b43b01e82fbeb7a1732e7f30e9af1fcb 100644 (file)
@@ -4,7 +4,7 @@
 #include "config.h"
 #include <stdio.h>
 #include <stddef.h>
-#include "string.h"
+#include <string.h>
 #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;
 }
@@ -93,7 +93,4 @@ sha1_final(u8 hash[SHA1_HASH_SIZE], SHA_CTX *ctx);
 
 #endif /* !WITH_LIBCRYPTO */
 
-extern int
-sha1sum(const tchar *filename, u8 hash[SHA1_HASH_SIZE]);
-
 #endif /* _WIMLIB_SHA1_H */