]> wimlib.net Git - wimlib/blobdiff - src/sha1.c
Improve char encoding support (IN PROGRESS)
[wimlib] / src / sha1.c
index 5af92568a4be3b20eb77cbfbc3694a95aaf5383b..ca1ad0eb6c5fac90c95da6e7a86ef13f1e0a091e 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 /*
- * Copyright (C) 2012 Eric Biggers
+ * Copyright (C) 2012, 2013 Eric Biggers
  *
  * This file is part of wimlib, a library for working with WIM files.
  *
@@ -224,7 +224,8 @@ static int sha1_stream(FILE *fp, u8 md[SHA1_HASH_SIZE])
 
 /* Calculates the SHA1 message digest of a file.  @md must point to a buffer of
  * length 20 bytes into which the message digest is written. */
-int sha1sum(const char *filename, u8 md[SHA1_HASH_SIZE])
+int
+sha1sum(const mbchar *filename, u8 md[SHA1_HASH_SIZE])
 {
        FILE *fp;
        int ret;