diff options
author | Luke Leighton <lkcl@samba.org> | 1998-05-21 12:18:52 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-05-21 12:18:52 +0000 |
commit | cf76b415a34534f574664e1fc1f8f1f8e6511c95 (patch) | |
tree | fcf6e24873ec1960a4acca86dcfbaa05fe2fdc72 /source3/passdb | |
parent | 1defdd071827e015c6f32ff16ac3ec312264aede (diff) | |
download | samba-cf76b415a34534f574664e1fc1f8f1f8e6511c95.tar.gz samba-cf76b415a34534f574664e1fc1f8f1f8e6511c95.tar.bz2 samba-cf76b415a34534f574664e1fc1f8f1f8e6511c95.zip |
fixed signed / unsigned warnings spotted by tim winders. also fixed
unnecessary "address of" warnings.
(This used to be commit ed0afe1e186ce53046e70d8a92103d4f59a2eed2)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 2 | ||||
-rw-r--r-- | source3/passdb/smbpass.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 396781d2f0..4a86e095da 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -811,7 +811,7 @@ static BOOL read_sid_from_file(int fd, char *sid_file) { fstring fline; - if(read(fd, &fline, sizeof(fline) -1 ) < 0) { + if(read(fd, fline, sizeof(fline) -1 ) < 0) { DEBUG(0,("read_sid_from_file: unable to read file %s. Error was %s\n", sid_file, strerror(errno) )); return False; diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index 633a527be1..4d446c65c2 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 = (char *)malloc( new_entry_length )) == NULL) { + if((new_entry = (unsigned 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); |