From 47c431279eed8d27ad6a49b1e5a1749ce110ead2 Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Thu, 20 Feb 2014 15:00:27 +1300 Subject: param: use a single init_copymap method in lib/param Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- source3/param/loadparm.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'source3') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 523bf92d20..b206f6be7a 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1178,7 +1178,6 @@ static int getservicebyname(const char *pszServiceName, static bool do_parameter(const char *pszParmName, const char *pszParmValue, void *userdata); static bool do_section(const char *pszSectionName, void *userdata); -static void init_copymap(struct loadparm_service *pservice); static bool hash_a_service(const char *name, int number); static void free_service_byindex(int iService); static void show_parameter(int parmIndex); @@ -2776,27 +2775,6 @@ static bool handle_printing(struct loadparm_context *unused, int snum, const cha return true; } - -/*************************************************************************** - Initialise a copymap. -***************************************************************************/ - -static void init_copymap(struct loadparm_service *pservice) -{ - int i; - - TALLOC_FREE(pservice->copymap); - - pservice->copymap = bitmap_talloc(NULL, NUMPARAMETERS); - if (!pservice->copymap) - DEBUG(0, - ("Couldn't allocate copymap!! (size %d)\n", - (int)NUMPARAMETERS)); - else - for (i = 0; i < NUMPARAMETERS; i++) - bitmap_set(pservice->copymap, i); -} - /** return the parameter pointer for a parameter */ -- cgit