summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-06-13 09:33:09 +0000
committerGünther Deschner <gd@samba.org>2005-06-13 09:33:09 +0000
commitba143b57785c7862f38f0ab624d49a071d97fc0b (patch)
treea89063aabe3b167380a985c922edcaf299354fec /source/param
parent2a64afb5833a1902d0b341dc2d9d82a209011869 (diff)
downloadsamba-ba143b57785c7862f38f0ab624d49a071d97fc0b.tar.gz
samba-ba143b57785c7862f38f0ab624d49a071d97fc0b.tar.xz
samba-ba143b57785c7862f38f0ab624d49a071d97fc0b.zip
r7529: Apply some const, remove unused variable.
Guenther
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index c0fbb1b77a3..bfd7b650cbe 100644
--- a/source/param/loadparm.c
+++ b/source/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;