summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-09-27 22:13:17 +0200
committerMichael Adam <obnox@samba.org>2008-09-27 22:28:26 +0200
commite56c89b5e85f565e03818abc4fa5354bdf473dee (patch)
tree6e731908398c69b9fe239b57c1d32f5ef65c8108 /source3
parent1578610aefe28be1b121f3a957787e98a5536b85 (diff)
downloadsamba-e56c89b5e85f565e03818abc4fa5354bdf473dee.tar.gz
samba-e56c89b5e85f565e03818abc4fa5354bdf473dee.tar.bz2
samba-e56c89b5e85f565e03818abc4fa5354bdf473dee.zip
[s3]loadparm: in lp_do_parameter() use function lp_local_ptr()
instead of hard coded calculation. Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index dc7026268b..025e3e92ad 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -7222,9 +7222,7 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
pszParmName));
return (True);
}
- parm_ptr =
- ((char *)ServicePtrs[snum]) + PTR_DIFF(def_ptr,
- &sDefault);
+ parm_ptr = lp_local_ptr(snum, def_ptr);
}
if (snum >= 0) {