diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/debug.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index e7772bbd38..119292b781 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -135,9 +135,9 @@ char *classname_table[] = { /**************************************************************************** utility access to debug class names's ****************************************************************************/ -char* debug_classname_from_index(int idx) +char* debug_classname_from_index(int ndx) { - return classname_table[idx]; + return classname_table[ndx]; } /**************************************************************************** @@ -162,7 +162,7 @@ parse the debug levels from smbcontrol. Example debug level parameter: ****************************************************************************/ BOOL debug_parse_params(char **params, int *debuglevel_class) { - int i, idx; + int i, ndx; char *class_name; char *class_level; @@ -183,8 +183,8 @@ BOOL debug_parse_params(char **params, int *debuglevel_class) for (; i < DBGC_LAST && params[i]; i++) { if ((class_name=strtok(params[i],":")) && (class_level=strtok(NULL, "\0")) && - ((idx = debug_lookup_classname(class_name)) != -1)) { - debuglevel_class[idx] = atoi(class_level); + ((ndx = debug_lookup_classname(class_name)) != -1)) { + debuglevel_class[ndx] = atoi(class_level); } else { DEBUG(0,("debug_parse_params: unrecognized debug class name or format [%s]\n", params[i])); return False; @@ -208,7 +208,7 @@ BOOL debug_parse_levels(char *params_str) ZERO_ARRAY(params); ZERO_ARRAY(debuglevel_class); - if ( (params[0]=strtok(params_str," ,")) ) { + if ((params[0]=strtok(params_str," ,"))) { for (i=1; i<DBGC_LAST;i++) { if ((params[i]=strtok(NULL," ,"))==NULL) break; |