Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/md Mark const castaways for lint.



details:   https://anonhg.NetBSD.org/src/rev/4f981dca260d
branches:  trunk
changeset: 472601:4f981dca260d
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 03 15:01:50 1999 +0000

description:
Mark const castaways for lint.

diffstat:

 lib/libc/md/md5c.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r 6feece3b9e34 -r 4f981dca260d lib/libc/md/md5c.c
--- a/lib/libc/md/md5c.c        Mon May 03 15:00:40 1999 +0000
+++ b/lib/libc/md/md5c.c        Mon May 03 15:01:50 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md5c.c,v 1.9 1999/02/09 00:54:31 explorer Exp $        */
+/*     $NetBSD: md5c.c,v 1.10 1999/05/03 15:01:50 christos Exp $       */
 
 /*
  * This file is derived from the RSA Data Security, Inc. MD5 Message-Digest
@@ -213,6 +213,7 @@
 
        /* Transform as many times as possible. */
        if (inputLen >= partLen) {
+               /* LINTED const castaway ok */
                memcpy((POINTER)&context->buffer[idx],
                    (POINTER)input, partLen);
                MD5Transform(context->state, context->buffer);
@@ -225,6 +226,7 @@
                i = 0;
 
        /* Buffer remaining input */
+       /* LINTED const castaway ok */
        memcpy((POINTER)&context->buffer[idx], (POINTER)&input[i],
            inputLen - i);
 }
@@ -256,7 +258,7 @@
        Encode(digest, context->state, 16);
 
        /* Zeroize sensitive information. */
-       ZEROIZE((POINTER)context, sizeof(*context));
+       ZEROIZE((POINTER)(void *)context, sizeof(*context));
 }
 
 /*
@@ -349,5 +351,5 @@
        state[3] += d;
 
        /* Zeroize sensitive information. */
-       ZEROIZE((POINTER)x, sizeof (x));
+       ZEROIZE((POINTER)(void *)x, sizeof (x));
 }



Home | Main Index | Thread Index | Old Index