diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-05-25 07:00:33 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-05-25 07:00:33 +0000 |
commit | 8dafae76cd3acc8e052aefb02f4699199ae56009 (patch) | |
tree | b934c9664cc99edd8654fcf02413ac76eb0d9ff1 /source3/passdb | |
parent | 73bc5782d4832b05379f539057fba8bf510a9ee9 (diff) | |
download | samba-8dafae76cd3acc8e052aefb02f4699199ae56009.tar.gz samba-8dafae76cd3acc8e052aefb02f4699199ae56009.tar.bz2 samba-8dafae76cd3acc8e052aefb02f4699199ae56009.zip |
Remove unused variable, fix functions to match prototypes in the various
structs.
Andrew Bartlett
(This used to be commit 57097bf1ba10566389266a4863899a7f25cdbb43)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_tdb.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 37101c39c9..cda9d68c10 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -101,7 +101,6 @@ static BOOL init_sam_from_buffer (struct tdbsam_privates *tdb_state, uint32 len = 0; uint32 lm_pw_len, nt_pw_len, hourslen; BOOL ret = True; - pstring sub_buffer; struct passwd *pw; uid_t uid = -1; gid_t gid = -1; /* This is what standard sub advanced expects if no gid is known */ @@ -278,7 +277,7 @@ done: Intialize a BYTE buffer from a SAM_ACCOUNT struct *********************************************************************/ static uint32 init_buffer_from_sam (struct tdbsam_privates *tdb_state, - uint8 **buf, const SAM_ACCOUNT *sampass) + uint8 **buf, SAM_ACCOUNT *sampass) { size_t len, buflen; @@ -673,7 +672,7 @@ static BOOL tdbsam_getsampwrid (struct pdb_methods *my_methods, SAM_ACCOUNT *use Delete a SAM_ACCOUNT ****************************************************************************/ -static BOOL tdbsam_delete_sam_account(struct pdb_methods *my_methods, const SAM_ACCOUNT *sam_pass) +static BOOL tdbsam_delete_sam_account(struct pdb_methods *my_methods, SAM_ACCOUNT *sam_pass) { struct tdbsam_privates *tdb_state = (struct tdbsam_privates *)my_methods->private_data; TDB_CONTEXT *pwd_tdb; @@ -729,7 +728,7 @@ static BOOL tdbsam_delete_sam_account(struct pdb_methods *my_methods, const SAM_ Update the TDB SAM ****************************************************************************/ -static BOOL tdb_update_sam(struct pdb_methods *my_methods, const SAM_ACCOUNT* newpwd, int flag) +static BOOL tdb_update_sam(struct pdb_methods *my_methods, SAM_ACCOUNT* newpwd, int flag) { struct tdbsam_privates *tdb_state = (struct tdbsam_privates *)my_methods->private_data; TDB_CONTEXT *pwd_tdb = NULL; @@ -864,7 +863,7 @@ done: Modifies an existing SAM_ACCOUNT ****************************************************************************/ -static BOOL tdbsam_update_sam_account (struct pdb_methods *my_methods, const SAM_ACCOUNT *newpwd) +static BOOL tdbsam_update_sam_account (struct pdb_methods *my_methods, SAM_ACCOUNT *newpwd) { return (tdb_update_sam(my_methods, newpwd, TDB_MODIFY)); } @@ -873,7 +872,7 @@ static BOOL tdbsam_update_sam_account (struct pdb_methods *my_methods, const SAM Adds an existing SAM_ACCOUNT ****************************************************************************/ -static BOOL tdbsam_add_sam_account (struct pdb_methods *my_methods, const SAM_ACCOUNT *newpwd) +static BOOL tdbsam_add_sam_account (struct pdb_methods *my_methods, SAM_ACCOUNT *newpwd) { return (tdb_update_sam(my_methods, newpwd, TDB_INSERT)); } |