diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2013-04-18 13:37:49 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-04-18 14:48:40 +0200 |
commit | ff0b94c22b36600fff1db9f1d48f9de61f9038f7 (patch) | |
tree | 06ce99a57589918f566b5fbe7beb0103dafad66f /cipher/rmd160.c | |
parent | 86e72b490a5790a9c23341067c7e4d3e38be1634 (diff) | |
download | libgcrypt-ff0b94c22b36600fff1db9f1d48f9de61f9038f7.tar.gz |
Add some const attributes.
* cipher/md4.c (transform): Add const attribute.
* cipher/md5.c (transform): Ditto.
* cipher/rmd160.c (transform): Ditto.
--
This is the same as
http://bzr.savannah.gnu.org/lh/grub/trunk/grub/revision/3685
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'cipher/rmd160.c')
-rw-r--r-- | cipher/rmd160.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cipher/rmd160.c b/cipher/rmd160.c index 552cff92..179a4d96 100644 --- a/cipher/rmd160.c +++ b/cipher/rmd160.c @@ -168,7 +168,8 @@ transform ( RMD160_CONTEXT *hd, const unsigned char *data ) u32 x[16]; { int i; - byte *p2, *p1; + byte *p2; + const byte *p1; for (i=0, p1=data, p2=(byte*)x; i < 16; i++, p2 += 4 ) { p2[3] = *p1++; |