summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-10-25 14:56:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:11 -0500
commit2f25efcbaf82c2d97b4aad0a59198e388b3ae654 (patch)
tree56333e39158acda0bbeb9b5bc3f8afb75cea001c /source3
parentbac6524af1ab318270e4ceafeaabbe870a3b7776 (diff)
downloadsamba-2f25efcbaf82c2d97b4aad0a59198e388b3ae654.tar.gz
samba-2f25efcbaf82c2d97b4aad0a59198e388b3ae654.tar.bz2
samba-2f25efcbaf82c2d97b4aad0a59198e388b3ae654.zip
r11296: removing unused variable and ifdef'd out code
(This used to be commit 88a33c4cf87ada17637579d9261471c219e88de0)
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 6ad1ace755..ed392ef137 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2455,7 +2455,6 @@ static int add_a_service(const service *pservice, const char *name)
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 @@ static char *canonicalize_servicename(const char *src)
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;
}