summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-09-01 10:24:34 +0000
committerSimo Sorce <idra@samba.org>2002-09-01 10:24:34 +0000
commit098b0b40fe8a165c16a5353be0314136de42bac2 (patch)
treeb5a7ae37a9aabb94bf258779595720083b33e4ef /source3/lib
parent21a58f5a64e202c0daa99d6924b933f324350946 (diff)
downloadsamba-098b0b40fe8a165c16a5353be0314136de42bac2.tar.gz
samba-098b0b40fe8a165c16a5353be0314136de42bac2.tar.bz2
samba-098b0b40fe8a165c16a5353be0314136de42bac2.zip
wrong way to handle things, bug found by kai
(This used to be commit 58f912da47d18a6a548c50dc9d4298c6bec7ea0d)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/debug.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index 65cac144cc..e20f329860 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -372,8 +372,7 @@ static void debug_dump_status(int level)
parse the debug levels from smbcontrol. Example debug level parameter:
printdrivers:7
****************************************************************************/
-BOOL debug_parse_params(char **params, int *debuglevel_class,
- BOOL *debuglevel_class_isset)
+static BOOL debug_parse_params(char **params)
{
int i, ndx;
char *class_name;
@@ -386,8 +385,8 @@ BOOL debug_parse_params(char **params, int *debuglevel_class,
* v.s. "all:10", this is the traditional way to set DEBUGLEVEL
*/
if (isdigit((int)params[0][0])) {
- debuglevel_class[DBGC_ALL] = atoi(params[0]);
- debuglevel_class_isset[DBGC_ALL] = True;
+ DEBUGLEVEL_CLASS[DBGC_ALL] = atoi(params[0]);
+ DEBUGLEVEL_CLASS_ISSET[DBGC_ALL] = True;
i = 1; /* start processing at the next params */
}
else
@@ -398,8 +397,8 @@ BOOL debug_parse_params(char **params, int *debuglevel_class,
if ((class_name=strtok(params[i],":")) &&
(class_level=strtok(NULL, "\0")) &&
((ndx = debug_lookup_classname(class_name)) != -1)) {
- debuglevel_class[ndx] = atoi(class_level);
- debuglevel_class_isset[ndx] = True;
+ DEBUGLEVEL_CLASS[ndx] = atoi(class_level);
+ DEBUGLEVEL_CLASS_ISSET[ndx] = True;
} else {
DEBUG(0,("debug_parse_params: unrecognized debug class name or format [%s]\n", params[i]));
return False;
@@ -426,8 +425,7 @@ BOOL debug_parse_levels(const char *params_str)
params = str_list_make(params_str, NULL);
- if (debug_parse_params(params, DEBUGLEVEL_CLASS,
- DEBUGLEVEL_CLASS_ISSET))
+ if (debug_parse_params(params))
{
debug_dump_status(5);
str_list_free(&params);