svn commit: samba r8941 - branches/SAMBA_3_0/source/rpc_server trunk/source/rpc_server

tpot at samba.org tpot at samba.org
Tue Aug 2 20:19:43 GMT 2005


Author: tpot
Date: 2005-08-02 20:19:42 +0000 (Tue, 02 Aug 2005)
New Revision: 8941

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8941

Log:
Fix unused variable warning.  Bugzilla #2940.

Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_svcctl_nt.c
   trunk/source/rpc_server/srv_svcctl_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_svcctl_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_svcctl_nt.c	2005-08-02 20:12:31 UTC (rev 8940)
+++ branches/SAMBA_3_0/source/rpc_server/srv_svcctl_nt.c	2005-08-02 20:19:42 UTC (rev 8941)
@@ -253,7 +253,6 @@
 	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 @@
 	
 	/* 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 */

Modified: trunk/source/rpc_server/srv_svcctl_nt.c
===================================================================
--- trunk/source/rpc_server/srv_svcctl_nt.c	2005-08-02 20:12:31 UTC (rev 8940)
+++ trunk/source/rpc_server/srv_svcctl_nt.c	2005-08-02 20:19:42 UTC (rev 8941)
@@ -253,7 +253,6 @@
 	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 @@
 	
 	/* 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 */



More information about the samba-cvs mailing list