From 3191ed9ae97f7cb6da9dd1034ec416e6e892150a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 9 Jul 2005 01:53:01 +0000 Subject: r8245: Add const. Andrew Bartlett (This used to be commit 8c079ce1631433f6bf1da8f378ea5f1a271a02ae) --- source4/lib/samba3/smbpasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/samba3/smbpasswd.c') diff --git a/source4/lib/samba3/smbpasswd.c b/source4/lib/samba3/smbpasswd.c index 587d038a3d..bcbb5e56d8 100644 --- a/source4/lib/samba3/smbpasswd.c +++ b/source4/lib/samba3/smbpasswd.c @@ -58,12 +58,12 @@ /*! Convert 32 hex characters into a 16 byte array. */ -struct samr_Password *smbpasswd_gethexpwd(TALLOC_CTX *mem_ctx, char *p) +struct samr_Password *smbpasswd_gethexpwd(TALLOC_CTX *mem_ctx, const char *p) { int i; unsigned char lonybble, hinybble; const char *hexchars = "0123456789ABCDEF"; - char *p1, *p2; + const char *p1, *p2; struct samr_Password *pwd = talloc(mem_ctx, struct samr_Password); if (!p) return NULL; -- cgit