From 7358f05060b78da46ffed716f258b5dcc8426336 Mon Sep 17 00:00:00 2001 From: augustss Date: Tue, 20 Mar 2001 11:47:44 +0000 Subject: [PATCH] Make this file lint. --- lib/libc/md/md2c.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/libc/md/md2c.c b/lib/libc/md/md2c.c index e525e9f7e4ca..d87e9094bb31 100644 --- a/lib/libc/md/md2c.c +++ b/lib/libc/md/md2c.c @@ -1,4 +1,4 @@ -/* $NetBSD: md2c.c,v 1.1 2001/03/19 04:13:17 atatat Exp $ */ +/* $NetBSD: md2c.c,v 1.2 2001/03/20 11:47:44 augustss Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -125,8 +125,7 @@ MD2Update(context, input, inputLen) piece = 32 - context->i; if ((inputLen - idx) < piece) piece = inputLen - idx; - memcpy(&context->X[context->i], &input[idx], - (unsigned long) piece); + memcpy(&context->X[context->i], &input[idx], (size_t)piece); if ((context->i += piece) == 32) MD2Transform(context); /* resets i */ } @@ -152,7 +151,7 @@ MD2Final(digest, context) MD2Update(context, &context->C[0], (unsigned int) sizeof(context->C)); /* copy out final digest */ - memcpy(digest, &context->X[0], (unsigned long) 16); + memcpy(digest, &context->X[0], (size_t)16); /* reset the context */ MD2Init(context);