diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-06-13 23:50:55 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:38 -0500 |
commit | b1268fc4455f61ee49412fc256106cd34e98ce7c (patch) | |
tree | 3b2308a0f1f3e597ab8bc968d5295988c1654ec0 /source4/smb_server | |
parent | 8dcb4aa084457e6d7a68467dceebc11abe4464bd (diff) | |
download | samba-b1268fc4455f61ee49412fc256106cd34e98ce7c.tar.gz samba-b1268fc4455f61ee49412fc256106cd34e98ce7c.tar.bz2 samba-b1268fc4455f61ee49412fc256106cd34e98ce7c.zip |
r1123: Make all lp_ string functions return 'const char *'.
Fix other 'const' warnings in the torture code.
Andrew Bartlett
(This used to be commit 5d39d7497f189da15d659b3f83b7314026040a15)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/connection.c | 2 | ||||
-rw-r--r-- | source4/smb_server/service.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/connection.c b/source4/smb_server/connection.c index d7e26f4614..389cf3c6dc 100644 --- a/source4/smb_server/connection.c +++ b/source4/smb_server/connection.c @@ -63,7 +63,7 @@ BOOL yield_connection(struct tcon_context *conn, const char *name) struct count_stat { pid_t mypid; int curr_connections; - char *name; + const char *name; BOOL Clear; }; diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c index 1f8b00ae0d..5d4cb3f0fd 100644 --- a/source4/smb_server/service.c +++ b/source4/smb_server/service.c @@ -75,7 +75,7 @@ static int find_service(const char *service) int iPrinterService; if ((iPrinterService = lp_servicenumber(PRINTERS_NAME)) >= 0) { - char *pszTemp; + const char *pszTemp; DEBUG(3,("checking whether %s is a valid printer name...\n", service)); pszTemp = lp_printcapname(); |