svn commit: samba r10961 - branches/SAMBA_3_0/source/services
trunk/source/services
jerry at samba.org
jerry at samba.org
Thu Oct 13 13:20:26 GMT 2005
Author: jerry
Date: 2005-10-13 13:20:26 +0000 (Thu, 13 Oct 2005)
New Revision: 10961
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10961
Log:
remove unused variables (patch from Jason Mader)
Modified:
branches/SAMBA_3_0/source/services/services_db.c
trunk/source/services/services_db.c
Changeset:
Modified: branches/SAMBA_3_0/source/services/services_db.c
===================================================================
--- branches/SAMBA_3_0/source/services/services_db.c 2005-10-13 12:35:33 UTC (rev 10960)
+++ branches/SAMBA_3_0/source/services/services_db.c 2005-10-13 13:20:26 UTC (rev 10961)
@@ -175,7 +175,7 @@
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 @@
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 @@
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 @@
/* 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 );
Modified: trunk/source/services/services_db.c
===================================================================
--- trunk/source/services/services_db.c 2005-10-13 12:35:33 UTC (rev 10960)
+++ trunk/source/services/services_db.c 2005-10-13 13:20:26 UTC (rev 10961)
@@ -175,7 +175,7 @@
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 @@
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 @@
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 @@
/* 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 );
More information about the samba-cvs
mailing list