diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-01 10:56:03 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-01 14:05:12 -0800 |
commit | 77ab8798d3f8df39877235be17bb6e70077aaba2 (patch) | |
tree | 6a9a4a9efa37f60acb44ce12a9c7159561b837d9 /mozilla-sha1/sha1.c | |
parent | 710c97dbb1a4469816ae01f4a26661cdba2c401b (diff) | |
download | git-77ab8798d3f8df39877235be17bb6e70077aaba2.tar.gz |
Fix constness of input in mozilla-sha1/sha1.c::SHA1_Update().
Among the three of our own implementations, only this one lacked
"const" from the second argument.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mozilla-sha1/sha1.c')
-rw-r--r-- | mozilla-sha1/sha1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mozilla-sha1/sha1.c b/mozilla-sha1/sha1.c index 7f6fc05e06..847531d19f 100644 --- a/mozilla-sha1/sha1.c +++ b/mozilla-sha1/sha1.c @@ -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 |