From 3ea349271355b39f7b877ce67530cc58e7db0ee8 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Tue, 23 Oct 2001 19:10:30 +0000 Subject: get rid of compiler warnings (casts and delete unused variables) (This used to be commit 51cb4411df61d1caec9d84809b1a53a6a632f808) --- source3/smbd/negprot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/smbd/negprot.c') diff --git a/source3/smbd/negprot.c b/source3/smbd/negprot.c index 097cb79e67..16d315f1d8 100644 --- a/source3/smbd/negprot.c +++ b/source3/smbd/negprot.c @@ -129,7 +129,7 @@ static int reply_lanman2(char *inbuf, char *outbuf) generate_next_challenge(cryptkey); } else { memcpy(cryptkey, cli->secblob.data, 8); - set_challenge(cryptkey); + set_challenge((unsigned char *)cryptkey); } } @@ -171,8 +171,8 @@ static int negprot_spnego(char *p, uint8 cryptkey[8]) int len; memset(guid, 0, 16); - safe_strcpy(guid, global_myname, 16); - strlower(guid); + safe_strcpy((char *)guid, global_myname, 16); + strlower((char *)guid); /* win2000 uses host$@REALM, which we will probably use eventually, but for now this works */ @@ -230,7 +230,7 @@ static int reply_nt1(char *inbuf, char *outbuf) if (global_encrypted_passwords_negotiated) { if (!cli) { - generate_next_challenge(cryptkey); + generate_next_challenge((char *)cryptkey); } else { memcpy(cryptkey, cli->secblob.data, 8); set_challenge(cryptkey); -- cgit