summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-12-15 14:16:06 +0100
committerMichael Adam <obnox@samba.org>2008-12-15 14:16:06 +0100
commit91c543f0b5a539da4194f14dee8cad0f980a117e (patch)
treee22c67a53de18b0c3098fcfbf9579f26355444da /source3/param
parent606abdceacfcad19735cd80f59aad975a9e97b7c (diff)
downloadsamba-91c543f0b5a539da4194f14dee8cad0f980a117e.tar.gz
samba-91c543f0b5a539da4194f14dee8cad0f980a117e.tar.bz2
samba-91c543f0b5a539da4194f14dee8cad0f980a117e.zip
s3:loadparm: rename lp_local_ptr() to lp_local_ptr_by_snum()
Michael
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index c74246c98e..3600266310 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4599,7 +4599,7 @@ static void free_parameter(int snum, struct parm_struct parm)
} else if (parm.p_class != P_LOCAL) {
return;
} else {
- parm_ptr = lp_local_ptr(snum, parm.ptr);
+ parm_ptr = lp_local_ptr_by_snum(snum, parm.ptr);
}
if ((parm.type == P_STRING) ||
@@ -7171,7 +7171,7 @@ static void init_copymap(struct service *pservice)
pointer into the default structure.
***************************************************************************/
-void *lp_local_ptr(int snum, void *ptr)
+void *lp_local_ptr_by_snum(int snum, void *ptr)
{
return (void *)(((char *)ServicePtrs[snum]) + PTR_DIFF(ptr, &sDefault));
}
@@ -7225,7 +7225,7 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
pszParmName));
return (True);
}
- parm_ptr = lp_local_ptr(snum, def_ptr);
+ parm_ptr = lp_local_ptr_by_snum(snum, def_ptr);
}
if (snum >= 0) {