summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-06-15 23:46:58 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-06-18 13:49:25 +1000
commitf666da6940c2cc0c82419ec68b1a83bddfe680c9 (patch)
treedb313da2ba1755ba1367510d86edbca81bb0bbe6 /libcli
parent5eac92697ed1781e83be460d6ed7b29a154464a2 (diff)
downloadsamba-f666da6940c2cc0c82419ec68b1a83bddfe680c9.tar.gz
samba-f666da6940c2cc0c82419ec68b1a83bddfe680c9.tar.bz2
samba-f666da6940c2cc0c82419ec68b1a83bddfe680c9.zip
Add const to cast, to fix warning
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/smbencrypt.c4
1 files changed, 2 insertions, 2 deletions
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
}