From 7837b0b10936661ec851841a2dafa8e9139298c5 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 7 Feb 1990 16:41:50 +0000 Subject: [PATCH] lint fixes, and can't use size of void for pointer arith git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@299 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/encrypt_key.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/kdb/encrypt_key.c b/src/lib/kdb/encrypt_key.c index a8b9bcbd0..4d82cc945 100644 --- a/src/lib/kdb/encrypt_key.c +++ b/src/lib/kdb/encrypt_key.c @@ -43,11 +43,11 @@ krb5_encrypt_block *eblock; out->length = 0; return ENOMEM; } - bcopy(&out->length, out->contents, sizeof(out->length)); + bcopy((char *)&out->length, (char *)out->contents, sizeof(out->length)); if (retval = (*eblock->crypto_entry-> encrypt_func)((krb5_pointer) in->contents, - ((krb5_pointer) out->contents) + - sizeof(out->length), + (krb5_pointer) (((char *) out->contents) + + sizeof(out->length)), in->length, eblock)) { free((char *)out->contents); out->contents = 0; -- 2.26.2