summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-10-31 06:22:19 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-10-31 06:22:19 +0000
commit3b5e72bda3263c6bdf81dfface4fae4f06b71032 (patch)
tree2d34caa16415093581fb4408fc7e06e21ed25544 /source/param
parent4eeb7bcd783d7cfb3ac232f1faa035773007401d (diff)
downloadsamba-3b5e72bda3263c6bdf81dfface4fae4f06b71032.tar.gz
samba-3b5e72bda3263c6bdf81dfface4fae4f06b71032.tar.xz
samba-3b5e72bda3263c6bdf81dfface4fae4f06b71032.zip
Small 'const' updates ahead of some AuthRewrite merging.
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index f6abda4ac9d..f9355ed14f0 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -1719,10 +1719,10 @@ FN_GLOBAL_BOOL(lp_hide_local_users, &Globals.bHideLocalUsers)
static int map_parameter(char *pszParmName);
static BOOL set_boolean(BOOL *pb, char *pszParmValue);
-static int getservicebyname(char *pszServiceName,
- service * pserviceDest);
+static int getservicebyname(const char *pszServiceName,
+ service * pserviceDest);
static void copy_service(service * pserviceDest,
- service * pserviceSource, BOOL *pcopymapDest);
+ service * pserviceSource, BOOL *pcopymapDest);
static BOOL service_ok(int iService);
static BOOL do_parameter(char *pszParmName, char *pszParmValue);
static BOOL do_section(char *pszSectionName);
@@ -1779,7 +1779,7 @@ static void free_service(service * pservice)
add a new service to the services array initialising it with the given
service.
***************************************************************************/
-static int add_a_service(service * pservice, char *name)
+static int add_a_service(const service * pservice, const char *name)
{
int i;
service tservice;
@@ -1843,7 +1843,7 @@ static int add_a_service(service * pservice, char *name)
add a new home service, with the specified home directory, defaults coming
from service ifrom.
***************************************************************************/
-BOOL lp_add_home(char *pszHomename, int iDefaultService, char *pszHomedir)
+BOOL lp_add_home(const char *pszHomename, int iDefaultService, const char *pszHomedir)
{
int i = add_a_service(ServicePtrs[iDefaultService], pszHomename);
@@ -1996,7 +1996,7 @@ static BOOL set_boolean(BOOL *pb, char *pszParmValue)
/***************************************************************************
Find a service by name. Otherwise works like get_service.
***************************************************************************/
-static int getservicebyname(char *pszServiceName, service * pserviceDest)
+static int getservicebyname(const char *pszServiceName, service * pserviceDest)
{
int iService;
@@ -3353,7 +3353,7 @@ exist. Note that this is a DIFFERENT ANIMAL from the internal function
getservicebyname()! This works ONLY if all services have been loaded, and
does not copy the found service.
***************************************************************************/
-int lp_servicenumber(char *pszServiceName)
+int lp_servicenumber(const char *pszServiceName)
{
int iService;