svn commit: samba r8245 - in branches/SAMBA_4_0/source/lib/samba3: .

abartlet at samba.org abartlet at samba.org
Sat Jul 9 01:53:02 GMT 2005


Author: abartlet
Date: 2005-07-09 01:53:01 +0000 (Sat, 09 Jul 2005)
New Revision: 8245

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8245

Log:
Add const.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/lib/samba3/smbpasswd.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/samba3/smbpasswd.c
===================================================================
--- branches/SAMBA_4_0/source/lib/samba3/smbpasswd.c	2005-07-08 12:47:34 UTC (rev 8244)
+++ branches/SAMBA_4_0/source/lib/samba3/smbpasswd.c	2005-07-09 01:53:01 UTC (rev 8245)
@@ -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;



More information about the samba-cvs mailing list