mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
param: remove unnecessary dump a service
Change-Id: I59b4edf929b4f8338e4c1a7116e0d1ef1bcad287 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
This commit is contained in:
parent
e1c50d9542
commit
124140f5d0
@ -2906,15 +2906,6 @@ static void dump_globals(FILE *f, bool show_defaults)
|
||||
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Display the contents of a single services record.
|
||||
***************************************************************************/
|
||||
|
||||
static void dump_a_service(struct loadparm_service *pService, FILE * f, bool show_defaults)
|
||||
{
|
||||
return lpcfg_dump_a_service(pService, &sDefault, f, flags_list, show_defaults);
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Display the contents of a parameter of a single services record.
|
||||
***************************************************************************/
|
||||
@ -4208,7 +4199,7 @@ void lp_dump(FILE *f, bool show_defaults, int maxtoprint)
|
||||
|
||||
dump_globals(f, defaults_saved);
|
||||
|
||||
dump_a_service(&sDefault, f, show_defaults);
|
||||
lpcfg_dump_a_service(&sDefault, &sDefault, f, flags_list, show_defaults);
|
||||
|
||||
for (iService = 0; iService < maxtoprint; iService++) {
|
||||
fprintf(f,"\n");
|
||||
@ -4225,7 +4216,8 @@ void lp_dump_one(FILE * f, bool show_defaults, int snum)
|
||||
if (VALID(snum)) {
|
||||
if (ServicePtrs[snum]->szService[0] == '\0')
|
||||
return;
|
||||
dump_a_service(ServicePtrs[snum], f, show_defaults);
|
||||
lpcfg_dump_a_service(ServicePtrs[snum], &sDefault, f,
|
||||
flags_list, show_defaults);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user