summaryrefslogtreecommitdiff
path: root/source4/param
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-08 23:32:05 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:52 +0100
commitfe77606ecc88da1ec421658c8266babbad6689c6 (patch)
treea5650807231ec51f4cd5ea1dda631eda96a7b264 /source4/param
parentb0eec881310dddd23b0053399263972307448da7 (diff)
downloadsamba-fe77606ecc88da1ec421658c8266babbad6689c6.tar.gz
samba-fe77606ecc88da1ec421658c8266babbad6689c6.tar.bz2
samba-fe77606ecc88da1ec421658c8266babbad6689c6.zip
r26345: Fix dumping an individual parameter.
(This used to be commit e8065a7f8f9156708b76720de50af29eb0092d59)
Diffstat (limited to 'source4/param')
-rw-r--r--source4/param/loadparm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index 412c9d8031..c3f06512dc 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -2147,7 +2147,7 @@ static void dump_a_service(struct loadparm_service * pService, FILE * f)
bool lp_dump_a_parameter(struct loadparm_context *lp_ctx,
struct loadparm_service *service,
- const char *parm_name, FILE * f, bool isGlobal)
+ const char *parm_name, FILE * f)
{
struct parm_struct *parm;
void *ptr;
@@ -2157,10 +2157,7 @@ bool lp_dump_a_parameter(struct loadparm_context *lp_ctx,
return false;
}
- if (isGlobal)
- ptr = ((char *)&sDefault) + parm->offset;
- else
- ptr = ((char *)service) + parm->offset;
+ ptr = lp_parm_ptr(lp_ctx, service,parm);
print_parameter(parm, ptr, f);
fprintf(f, "\n");