summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-04 00:49:32 +0000
committerJeremy Allison <jra@samba.org>1998-06-04 00:49:32 +0000
commita1c66b009ff2d6ac16b43f2af8eeaea67abb6414 (patch)
treefd41bab20d5c2123751d731145ffaa2c76df1983 /source3/passdb
parent52c69766ea495f08a907c6ca76b1cef8df8c5d7c (diff)
downloadsamba-a1c66b009ff2d6ac16b43f2af8eeaea67abb6414.tar.gz
samba-a1c66b009ff2d6ac16b43f2af8eeaea67abb6414.tar.bz2
samba-a1c66b009ff2d6ac16b43f2af8eeaea67abb6414.zip
includes.h: Fixes for NetBSD and BSDI.
smbpass.c: Fixed irix warnings. Jeremy. (This used to be commit 2caefb35ff56dba67968d04755d74238a38ba29d)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/smbpass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index 003a1742e7..9c811a3728 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -475,7 +475,7 @@ Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
new_entry_length = strlen(newpwd->smb_name) + 1 + 15 + 1 + 32 + 1 + 32 + 1 + 5 + 1 + 13 + 2;
- if((new_entry = (unsigned char *)malloc( new_entry_length )) == NULL) {
+ if((new_entry = (char *)malloc( new_entry_length )) == NULL) {
DEBUG(0, ("add_smbfilepwd_entry(malloc): Failed to add entry for user %s to file %s. \
Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
endsmbfilepwent(fp);
@@ -483,7 +483,7 @@ Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
}
slprintf(new_entry, new_entry_length - 1, "%s:%u:", newpwd->smb_name, (unsigned)newpwd->smb_userid);
- p = (unsigned char *)&new_entry[strlen(new_entry)];
+ p = &new_entry[strlen(new_entry)];
if(newpwd->smb_passwd != NULL) {
for( i = 0; i < 16; i++) {