mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
param: remove unused dump_globals
Change-Id: Id55884c2809ada9c37a4ae306f3a09ecee0fe992 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
committed by
Michael Adam
parent
26a6f05f0f
commit
42f21ad65c
@ -2729,43 +2729,6 @@ bool lp_do_section(const char *pszSectionName, void *userdata)
|
||||
return bRetval;
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Display the contents of the global structure.
|
||||
***************************************************************************/
|
||||
|
||||
static void dump_globals(FILE *f, bool show_defaults)
|
||||
{
|
||||
int i;
|
||||
struct parmlist_entry *data;
|
||||
|
||||
fprintf(f, "[global]\n");
|
||||
|
||||
for (i = 0; parm_table[i].label; i++)
|
||||
if (parm_table[i].p_class == P_GLOBAL &&
|
||||
!(parm_table[i].flags & FLAG_META) &&
|
||||
(i == 0 || (parm_table[i].offset != parm_table[i - 1].offset))) {
|
||||
if (show_defaults && is_default(&Globals, i))
|
||||
continue;
|
||||
fprintf(f, "\t%s = ", parm_table[i].label);
|
||||
lpcfg_print_parameter(&parm_table[i], lp_parm_ptr(NULL,
|
||||
&parm_table[i]),
|
||||
f);
|
||||
fprintf(f, "\n");
|
||||
}
|
||||
if (Globals.param_opt != NULL) {
|
||||
data = Globals.param_opt;
|
||||
while(data) {
|
||||
if (!show_defaults && (data->priority & FLAG_DEFAULT)) {
|
||||
data = data->next;
|
||||
continue;
|
||||
}
|
||||
fprintf(f, "\t%s = %s\n", data->key, data->value);
|
||||
data = data->next;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Display the contents of a parameter of a single services record.
|
||||
***************************************************************************/
|
||||
|
Reference in New Issue
Block a user