summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-12 21:29:01 +0000
committerJeremy Allison <jra@samba.org>2003-05-12 21:29:01 +0000
commitd7ec9f68351a18e4d9107c7852b280de1cc1998f (patch)
tree171717812e56e4cbc3db1a560d95130a55fb7947 /source3
parentd33db506ca7f62730c7954d9f19d184171a5d16b (diff)
downloadsamba-d7ec9f68351a18e4d9107c7852b280de1cc1998f.tar.gz
samba-d7ec9f68351a18e4d9107c7852b280de1cc1998f.tar.bz2
samba-d7ec9f68351a18e4d9107c7852b280de1cc1998f.zip
Fix compiler warnings.
Jeremy. (This used to be commit e12934c67b6aea9e3e449009e159ce6814dcbd11)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_guest.c1
-rw-r--r--source3/passdb/pdb_ldap.c1
-rw-r--r--source3/passdb/pdb_tdb.c1
-rw-r--r--source3/rpc_server/srv_samr_nt.c1
-rw-r--r--source3/sam/idmap_util.c2
-rw-r--r--source3/utils/pdbedit.c1
6 files changed, 0 insertions, 7 deletions
diff --git a/source3/passdb/pdb_guest.c b/source3/passdb/pdb_guest.c
index 9bcdccc7e7..f5cd3d996d 100644
--- a/source3/passdb/pdb_guest.c
+++ b/source3/passdb/pdb_guest.c
@@ -26,7 +26,6 @@
static NTSTATUS guestsam_getsampwnam (struct pdb_methods *methods, SAM_ACCOUNT *sam_account, const char *sname)
{
- NTSTATUS nt_status;
const char *guest_account = lp_guestaccount();
if (!sam_account || !sname) {
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index da3a163c1e..b75238e971 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -1599,7 +1599,6 @@ static BOOL init_sam_from_ldap (struct ldapsam_privates *ldap_state,
acct_desc,
munged_dial,
workstations;
- struct passwd *pw;
uint32 user_rid;
uint8 smblmpwd[LM_HASH_LEN],
smbntpwd[NT_HASH_LEN];
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 74437cba6f..93fa4e1886 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -99,7 +99,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;
- struct passwd *pw;
uid_t uid = -1;
gid_t gid = -1;
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 69ac60a7db..0f7f6fc9df 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -3516,7 +3516,6 @@ NTSTATUS _samr_add_groupmem(pipes_struct *p, SAMR_Q_ADD_GROUPMEM *q_u, SAMR_R_AD
struct group *grp;
fstring grp_name;
GROUP_MAP map;
- uid_t uid;
NTSTATUS ret;
SAM_ACCOUNT *sam_user=NULL;
BOOL check;
diff --git a/source3/sam/idmap_util.c b/source3/sam/idmap_util.c
index e0c492542b..8c3a378832 100644
--- a/source3/sam/idmap_util.c
+++ b/source3/sam/idmap_util.c
@@ -175,7 +175,6 @@ NTSTATUS uid_to_sid(DOM_SID *sid, uid_t uid)
NTSTATUS gid_to_sid(DOM_SID *sid, gid_t gid)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
- GROUP_MAP map;
unid_t id;
int flags;
@@ -272,7 +271,6 @@ NTSTATUS sid_to_gid(const DOM_SID *sid, gid_t *gid)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
BOOL fallback = False;
- uint32 rid;
unid_t id;
int flags;
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index 13f35e8880..9a45049bc5 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -112,7 +112,6 @@ static int export_groups (struct pdb_context *in, struct pdb_context *out) {
static int print_sam_info (SAM_ACCOUNT *sam_pwent, BOOL verbosity, BOOL smbpwdstyle)
{
uid_t uid;
- gid_t gid;
time_t tmp;
/* TODO: chaeck if entry is a user or a workstation */