summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-11-22 07:17:32 +0000
committerAndrew Tridgell <tridge@samba.org>1997-11-22 07:17:32 +0000
commita5d239e873fad6c9f3a10a6deeb9d1fc80be333e (patch)
treeb32c8ceb5a65856205bd37c6dd4529e5c919dd26 /source3/passdb
parentab3f4464e88c67d071e348a68aebb8b093f12f1f (diff)
downloadsamba-a5d239e873fad6c9f3a10a6deeb9d1fc80be333e.tar.gz
samba-a5d239e873fad6c9f3a10a6deeb9d1fc80be333e.tar.bz2
samba-a5d239e873fad6c9f3a10a6deeb9d1fc80be333e.zip
fixed some typecasts of (char *) to (unsigned char *)
(This used to be commit c98ba8c748bd852ff609cec5510cd5a013f51fd2)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/smbpass.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index cc0e1fd26d..4109383fb4 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -508,11 +508,11 @@ Error was %s\n",
}
sprintf(new_entry, "%s:%u:", pwd->smb_name, (unsigned)pwd->smb_userid);
- p = &new_entry[strlen(new_entry)];
+ p = (unsigned char *)&new_entry[strlen(new_entry)];
for( i = 0; i < 16; i++)
{
- sprintf(&p[i*2], "%02X", pwd->smb_passwd[i]);
+ sprintf((char *)&p[i*2], "%02X", pwd->smb_passwd[i]);
}
p += 32;
@@ -520,12 +520,12 @@ Error was %s\n",
for( i = 0; i < 16; i++)
{
- sprintf(&p[i*2], "%02X", pwd->smb_nt_passwd[i]);
+ sprintf((char *)&p[i*2], "%02X", pwd->smb_nt_passwd[i]);
}
p += 32;
*p++ = ':';
- sprintf(p,"\n");
+ sprintf((char *)p,"\n");
#ifdef DEBUG_PASSWORD
DEBUG(100, ("add_smbpwd_entry(%d): new_entry_len %d entry_len %d made line |%s|\n",