summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-08-02 20:19:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:21 -0500
commit235644680f1fe0defdffcaeb3364150fbb344d86 (patch)
tree1201e3535b87d88c8b99fc0c1800699e105ad1f5 /source3
parent7715c33ab1624ce27257dd4c75e56936c6093cb6 (diff)
downloadsamba-235644680f1fe0defdffcaeb3364150fbb344d86.tar.gz
samba-235644680f1fe0defdffcaeb3364150fbb344d86.tar.bz2
samba-235644680f1fe0defdffcaeb3364150fbb344d86.zip
r8941: Fix unused variable warning. Bugzilla #2940.
(This used to be commit 6d0aafa5990b1e56d046489e07cbfe85d258c53f)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_svcctl_nt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c
index 580d000d12..15d947cf0f 100644
--- a/source3/rpc_server/srv_svcctl_nt.c
+++ b/source3/rpc_server/srv_svcctl_nt.c
@@ -253,7 +253,6 @@ WERROR _svcctl_open_service(pipes_struct *p, SVCCTL_Q_OPEN_SERVICE *q_u, SVCCTL_
uint32 access_granted = 0;
NTSTATUS status;
pstring service;
- SERVICE_INFO *scm_info;
rpcstr_pull(service, q_u->servicename.buffer, sizeof(service), q_u->servicename.uni_str_len*2, 0);
@@ -262,7 +261,7 @@ WERROR _svcctl_open_service(pipes_struct *p, SVCCTL_Q_OPEN_SERVICE *q_u, SVCCTL_
/* based on my tests you can open a service if you have a valid scm handle */
- if ( !(scm_info = find_service_info_by_hnd( p, &q_u->handle )) )
+ if ( !find_service_info_by_hnd( p, &q_u->handle ) )
return WERR_BADFID;
/* perform access checks */