summaryrefslogtreecommitdiff
path: root/source3/param/loadparm.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-06-13 09:33:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:57:10 -0500
commit0fe12bf9018131d846af6b9e6f40d6337dbbde19 (patch)
tree8f616c220520a359bfb54fed0657dafb24cae506 /source3/param/loadparm.c
parentebb42167c9912492428e7ed8e03f06505a5c86fe (diff)
downloadsamba-0fe12bf9018131d846af6b9e6f40d6337dbbde19.tar.gz
samba-0fe12bf9018131d846af6b9e6f40d6337dbbde19.tar.bz2
samba-0fe12bf9018131d846af6b9e6f40d6337dbbde19.zip
r7529: Apply some const, remove unused variable.
Guenther (This used to be commit bc419472e295945559cf83f6ed9febff29adcfc1)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r--source3/param/loadparm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index c0fbb1b77a..bfd7b650cb 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -2527,14 +2527,14 @@ void show_parameter_list(void)
{
int classIndex, parmIndex, enumIndex, flagIndex;
BOOL hadFlag;
- char *section_names[] = { "local", "global", NULL};
- char *type[] = { "P_BOOL", "P_BOOLREV", "P_CHAR", "P_INTEGER",
+ const char *section_names[] = { "local", "global", NULL};
+ const char *type[] = { "P_BOOL", "P_BOOLREV", "P_CHAR", "P_INTEGER",
"P_OCTAL", "P_LIST", "P_STRING", "P_USTRING", "P_GSTRING",
"P_UGSTRING", "P_ENUM", "P_SEP"};
unsigned flags[] = { FLAG_BASIC, FLAG_SHARE, FLAG_PRINT, FLAG_GLOBAL,
FLAG_WIZARD, FLAG_ADVANCED, FLAG_DEVELOPER, FLAG_DEPRECATED,
FLAG_HIDE, FLAG_DOS_STRING};
- char *flag_names[] = { "FLAG_BASIC", "FLAG_SHARE", "FLAG_PRINT",
+ const char *flag_names[] = { "FLAG_BASIC", "FLAG_SHARE", "FLAG_PRINT",
"FLAG_GLOBAL", "FLAG_WIZARD", "FLAG_ADVANCED", "FLAG_DEVELOPER",
"FLAG_DEPRECATED", "FLAG_HIDE", "FLAG_DOS_STRING", NULL};
@@ -3690,7 +3690,6 @@ BOOL dump_a_parameter(int snum, char *parm_name, FILE * f, BOOL isGlobal)
int i, result = False;
parm_class class;
unsigned flag = 0;
- void *ptr;
if (isGlobal) {
class = P_GLOBAL;