From f666da6940c2cc0c82419ec68b1a83bddfe680c9 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 15 Jun 2009 23:46:58 +1000 Subject: Add const to cast, to fix warning --- libcli/auth/smbencrypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcli') diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index 8d07b94806..4aacc54853 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -155,7 +155,7 @@ void nt_lm_owf_gen(const char *pwd, uint8_t nt_p16[16], uint8_t p16[16]) #ifdef DEBUG_PASSWORD DEBUG(100,("nt_lm_owf_gen: pwd, nt#\n")); - dump_data(120, (uint8_t *)pwd, strlen(pwd)); + dump_data(120, (const uint8_t *)pwd, strlen(pwd)); dump_data(100, nt_p16, 16); #endif @@ -163,7 +163,7 @@ void nt_lm_owf_gen(const char *pwd, uint8_t nt_p16[16], uint8_t p16[16]) #ifdef DEBUG_PASSWORD DEBUG(100,("nt_lm_owf_gen: pwd, lm#\n")); - dump_data(120, (uint8_t *)pwd, strlen(pwd)); + dump_data(120, (const uint8_t *)pwd, strlen(pwd)); dump_data(100, p16, 16); #endif } -- cgit