svn commit: samba r11296 - branches/SAMBA_3_0/source/param
trunk/source/param
jerry at samba.org
jerry at samba.org
Tue Oct 25 14:56:23 GMT 2005
Author: jerry
Date: 2005-10-25 14:56:22 +0000 (Tue, 25 Oct 2005)
New Revision: 11296
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11296
Log:
removing unused variable and ifdef'd out code
Modified:
branches/SAMBA_3_0/source/param/loadparm.c
trunk/source/param/loadparm.c
Changeset:
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0/source/param/loadparm.c 2005-10-25 14:54:41 UTC (rev 11295)
+++ branches/SAMBA_3_0/source/param/loadparm.c 2005-10-25 14:56:22 UTC (rev 11296)
@@ -2455,7 +2455,6 @@
static char *canonicalize_servicename(const char *src)
{
static fstring canon; /* is fstring large enough? */
- int dst_idx = 0;
if ( !src ) {
DEBUG(0,("canonicalize_servicename: NULL source name!\n"));
@@ -2465,19 +2464,6 @@
fstrcpy( canon, src );
strupper_m( canon );
-#if 0
- for (; *src != '\0'; src += next_mb_char_size(src)) {
- if (isspace(*src)) {
- continue;
- }
- if (dst_idx == sizeof(canon) - 1) {
- return NULL;
- }
- canon[dst_idx++] = toupper(*src);
- }
- canon[dst_idx] = '\0';
-#endif
-
return canon;
}
Modified: trunk/source/param/loadparm.c
===================================================================
--- trunk/source/param/loadparm.c 2005-10-25 14:54:41 UTC (rev 11295)
+++ trunk/source/param/loadparm.c 2005-10-25 14:56:22 UTC (rev 11296)
@@ -2455,7 +2455,6 @@
static char *canonicalize_servicename(const char *src)
{
static fstring canon; /* is fstring large enough? */
- int dst_idx = 0;
if ( !src ) {
DEBUG(0,("canonicalize_servicename: NULL source name!\n"));
@@ -2465,19 +2464,6 @@
fstrcpy( canon, src );
strupper_m( canon );
-#if 0
- for (; *src != '\0'; src += next_mb_char_size(src)) {
- if (isspace(*src)) {
- continue;
- }
- if (dst_idx == sizeof(canon) - 1) {
- return NULL;
- }
- canon[dst_idx++] = toupper(*src);
- }
- canon[dst_idx] = '\0';
-#endif
-
return canon;
}
More information about the samba-cvs
mailing list