Code

Merge branch 'master' of git://repo.or.cz/git-gui
[git.git] / mozilla-sha1 / sha1.c
index 7f6fc05e06e30b2f7b3eda6015043f5ebcfd34c1..847531d19f88e420ad68f95f11ab2f1f77876d08 100644 (file)
@@ -56,8 +56,8 @@ void SHA1_Init(SHA_CTX *ctx) {
 }
 
 
-void SHA1_Update(SHA_CTX *ctx, void *_dataIn, int len) {
-  unsigned char *dataIn = _dataIn;
+void SHA1_Update(SHA_CTX *ctx, const void *_dataIn, int len) {
+  const unsigned char *dataIn = _dataIn;
   int i;
 
   /* Read the data into W and process blocks as they get full