summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-10-13 13:20:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:04:58 -0500
commitde0776cdaa3e4c5fab9fe7adfd5fdb3e7b2b1659 (patch)
treed51a93d62a1f9454a5a3c21dde8d50229c6bb108
parent1aa8721e30aebd7712c9c27d5640526881819c6d (diff)
downloadsamba-de0776cdaa3e4c5fab9fe7adfd5fdb3e7b2b1659.tar.gz
samba-de0776cdaa3e4c5fab9fe7adfd5fdb3e7b2b1659.tar.bz2
samba-de0776cdaa3e4c5fab9fe7adfd5fdb3e7b2b1659.zip
r10961: remove unused variables (patch from Jason Mader)
(This used to be commit d6c6562d33cc88827cb8560a412e8ea51f9a5352)
-rw-r--r--source3/services/services_db.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/services/services_db.c b/source3/services/services_db.c
index e1b2f88865..9cd9ba8d83 100644
--- a/source3/services/services_db.c
+++ b/source3/services/services_db.c
@@ -175,7 +175,7 @@ static BOOL read_init_file( const char *servicename, struct rcinit_file_informat
struct rcinit_file_information *info;
pstring filepath, str;
XFILE *f;
- char *p, *s;
+ char *p;
if ( !(info = TALLOC_ZERO_P( NULL, struct rcinit_file_information ) ) )
return False;
@@ -189,7 +189,7 @@ static BOOL read_init_file( const char *servicename, struct rcinit_file_informat
return False;
}
- while ( (s = x_fgets( str, sizeof(str)-1, f )) != NULL ) {
+ while ( (x_fgets( str, sizeof(str)-1, f )) != NULL ) {
/* ignore everything that is not a full line
comment starting with a '#' */
@@ -400,7 +400,6 @@ void svcctl_init_keys( void )
REGSUBKEY_CTR *subkeys;
REGISTRY_KEY *key = NULL;
WERROR wresult;
- BOOL new_services = False;
/* bad mojo here if the lookup failed. Should not happen */
@@ -437,8 +436,6 @@ void svcctl_init_keys( void )
/* Add the new service key and initialize the appropriate values */
add_new_svc_name( key, subkeys, service_list[i] );
-
- new_services = True;
}
regkey_close_internal( key );