summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-05 00:41:01 +0000
committerTim Potter <tpot@samba.org>2002-03-05 00:41:01 +0000
commit1d5fb7865d2a8441351668ea43b20a3b64ac232d (patch)
treed56572a2339d405db00349264ae22abb3c207bd2
parent076e879ac1ea1ccc33deed2b4b95534830a5832b (diff)
downloadsamba-1d5fb7865d2a8441351668ea43b20a3b64ac232d.tar.gz
samba-1d5fb7865d2a8441351668ea43b20a3b64ac232d.tar.bz2
samba-1d5fb7865d2a8441351668ea43b20a3b64ac232d.zip
Fixed compiler warning about unused variables.
(This used to be commit 7bb0dda8ee1d61a0e8448070f1a71fcd13be5d40)
-rw-r--r--source3/smbd/uid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index f2b3bdbe6c..c3156b7b14 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -591,16 +591,16 @@ DOM_SID *gid_to_sid(DOM_SID *psid, gid_t gid)
BOOL sid_to_uid(DOM_SID *psid, uid_t *puid, enum SID_NAME_USE *sidtype)
{
- fstring dom_name, name, sid_str;
- enum SID_NAME_USE name_type;
-
- *sidtype = SID_NAME_UNKNOWN;
-
+ fstring sid_str;
/* (tridge) I commented out the slab of code below in order to support foreign SIDs
Do we really need to validate the type of SID we have in this case?
*/
#if 0
+ fstring dom_name, name;
+ enum SID_NAME_USE name_type;
+
+ *sidtype = SID_NAME_UNKNOWN;
/*
* First we must look up the name and decide if this is a user sid.
*/