summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md2c.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-11-07 20:48:35 +0000
committerphk <phk@FreeBSD.org>1994-11-07 20:48:35 +0000
commit1331c46d810c83bbf73d1d5f87b26a0c192f778e (patch)
tree363e9941ec227dcd459032b2e309e2bb1975a8c3 /lib/libmd/md2c.c
parent4d684eab18a4ee4fe1eb967ae82991e2b20a43eb (diff)
downloadFreeBSD-src-1331c46d810c83bbf73d1d5f87b26a0c192f778e.zip
FreeBSD-src-1331c46d810c83bbf73d1d5f87b26a0c192f778e.tar.gz
Added "const" to the arguments here and there.
Diffstat (limited to 'lib/libmd/md2c.c')
-rw-r--r--lib/libmd/md2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libmd/md2c.c b/lib/libmd/md2c.c
index 1d644ee..a9c0607 100644
--- a/lib/libmd/md2c.c
+++ b/lib/libmd/md2c.c
@@ -30,7 +30,7 @@ typedef unsigned long int UINT4;
#define PROTO_LIST(list) list
static void MD2Transform PROTO_LIST
- ((unsigned char [16], unsigned char [16], unsigned char [16]));
+ ((unsigned char [16], unsigned char [16], const unsigned char [16]));
/* Permutation of 0..255 constructed from the digits of pi. It gives a
"random" nonlinear byte substitution operation.
@@ -97,7 +97,7 @@ MD2_CTX *context; /* context */
*/
void MD2Update (context, input, inputLen)
MD2_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;
@@ -161,7 +161,7 @@ MD2_CTX *context; /* context */
static void MD2Transform (state, checksum, block)
unsigned char state[16];
unsigned char checksum[16];
-unsigned char block[16];
+const unsigned char block[16];
{
unsigned int i, j, t;
unsigned char x[48];
OpenPOWER on IntegriCloud