From 125183b2bce6874c2eca34f1a0253de32e9c957a Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Mon, 21 Jan 2008 18:01:29 +0000 Subject: cast args to des_ecb_encrypt and des_quad_cksum to squash last warnings --- server/kstuff.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/kstuff.c') diff --git a/server/kstuff.c b/server/kstuff.c index 28492ee..63d1f1c 100644 --- a/server/kstuff.c +++ b/server/kstuff.c @@ -880,10 +880,10 @@ compute_checksum(ZNotice_t *notice, cstart = notice->z_default_format + strlen(notice->z_default_format) + 1; cend = cstart + strlen(cstart) + 1; - checksum = des_quad_cksum((unsigned char *)hstart, NULL, cstart - hstart, 0, session_key); - checksum ^= des_quad_cksum((unsigned char *)cend, NULL, hend - cend, 0, session_key); + checksum = des_quad_cksum((unsigned char *)hstart, NULL, cstart - hstart, 0, (C_Block *)session_key); + checksum ^= des_quad_cksum((unsigned char *)cend, NULL, hend - cend, 0, (C_Block *)session_key); checksum ^= des_quad_cksum((unsigned char *)notice->z_message, NULL, notice->z_message_len, - 0, session_key); + 0, (C_Block *)session_key); return checksum; #endif } @@ -899,7 +899,7 @@ static ZChecksum_t compute_rlm_checksum(ZNotice_t *notice, cstart = notice->z_default_format + strlen(notice->z_default_format) + 1; cend = cstart + strlen(cstart) + 1; - checksum = des_quad_cksum((unsigned char *)hstart, NULL, cstart - hstart, 0, session_key); + checksum = des_quad_cksum((unsigned char *)hstart, NULL, cstart - hstart, 0, (C_Block *)session_key); return checksum; #endif } -- cgit v1.2.3