diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-11-07 20:48:35 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-11-07 20:48:35 +0000 |
commit | 4385de1699eedefa385d938df50441699f9664fe (patch) | |
tree | 363e9941ec227dcd459032b2e309e2bb1975a8c3 /lib/libmd/md4c.c | |
parent | 2bf7ffc485ff7a75dd023b6fb218bcf3a2a2ea7d (diff) | |
download | src-4385de1699eedefa385d938df50441699f9664fe.tar.gz src-4385de1699eedefa385d938df50441699f9664fe.zip |
Added "const" to the arguments here and there.
Notes
Notes:
svn path=/head/; revision=4245
Diffstat (limited to 'lib/libmd/md4c.c')
-rw-r--r-- | lib/libmd/md4c.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libmd/md4c.c b/lib/libmd/md4c.c index 07cb4e6e31ae..0f4290557fef 100644 --- a/lib/libmd/md4c.c +++ b/lib/libmd/md4c.c @@ -46,11 +46,11 @@ typedef unsigned long int UINT4; #define S33 11 #define S34 15 -static void MD4Transform PROTO_LIST ((UINT4 [4], unsigned char [64])); +static void MD4Transform PROTO_LIST ((UINT4 [4], const unsigned char [64])); static void Encode PROTO_LIST ((unsigned char *, UINT4 *, unsigned int)); static void Decode PROTO_LIST - ((UINT4 *, unsigned char *, unsigned int)); + ((UINT4 *, const unsigned char *, unsigned int)); static unsigned char PADDING[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -104,7 +104,7 @@ MD4_CTX *context; /* context */ */ void MD4Update (context, input, inputLen) MD4_CTX *context; /* context */ -unsigned char *input; /* input block */ +const unsigned char *input; /* input block */ unsigned int inputLen; /* length of input block */ { unsigned int i, index, partLen; @@ -172,7 +172,7 @@ MD4_CTX *context; /* context */ */ static void MD4Transform (state, block) UINT4 state[4]; -unsigned char block[64]; +const unsigned char block[64]; { UINT4 a = state[0], b = state[1], c = state[2], d = state[3], x[16]; @@ -266,7 +266,7 @@ unsigned int len; static void Decode (output, input, len) UINT4 *output; -unsigned char *input; +const unsigned char *input; unsigned int len; { unsigned int i, j; |