summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-12-15 14:29:34 +0100
committerMichael Adam <obnox@samba.org>2008-12-15 14:46:19 +0100
commit03f19dad795c247878918de95a8c1f63ec259d13 (patch)
treed47e1fc95435bad7acd72ebfdb2e437f0ad2795a /source3
parent0b0dc506d4b709b6373a19795276351285679eb3 (diff)
downloadsamba-03f19dad795c247878918de95a8c1f63ec259d13.tar.gz
samba-03f19dad795c247878918de95a8c1f63ec259d13.tar.bz2
samba-03f19dad795c247878918de95a8c1f63ec259d13.zip
s3:loadparm: rename free_parameters() to free_parameters_by_snum()
Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/param/loadparm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 580136446b..d44d04a7a7 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -4616,9 +4616,10 @@ static void free_one_parameter_by_snum(int snum, struct parm_struct parm)
}
/**
- * Free the allocated parameter data for a share.
+ * Free the allocated parameter data for a share specified
+ * by an snum.
*/
-static void free_parameters(int snum)
+static void free_parameters_by_snum(int snum)
{
uint32_t i;
@@ -4632,7 +4633,7 @@ static void free_parameters(int snum)
*/
static void free_global_parameters(void)
{
- free_parameters(GLOBAL_SECTION_SNUM);
+ free_parameters_by_snum(GLOBAL_SECTION_SNUM);
}
/***************************************************************************
@@ -5743,7 +5744,7 @@ static void free_service(struct service *pservice)
DEBUG(5, ("free_service: Freeing service %s\n",
pservice->szService));
- free_parameters(getservicebyname(pservice->szService, NULL));
+ free_parameters_by_snum(getservicebyname(pservice->szService, NULL));
string_free(&pservice->szService);
bitmap_free(pservice->copymap);