diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-07-20 23:55:17 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-07-20 23:55:17 +0000 |
commit | c30f930262b2156e15f7dc927f2c71fc20f47f46 (patch) | |
tree | 7dabf998cb92bc44ca445f70577c3574ba1bdc9f /source3 | |
parent | 27211c55e2d8e474cef0abe80847a4387aa688e3 (diff) | |
download | samba-c30f930262b2156e15f7dc927f2c71fc20f47f46.tar.gz samba-c30f930262b2156e15f7dc927f2c71fc20f47f46.tar.bz2 samba-c30f930262b2156e15f7dc927f2c71fc20f47f46.zip |
And a little more 'const'.
(This used to be commit 2cbbf0ecd33774041dd831956935ab3cf69ce2a6)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/param/loadparm.c | 4 | ||||
-rw-r--r-- | source3/printing/pcap.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 0602e901a4..a5f01c6abf 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1977,9 +1977,9 @@ static BOOL lp_add_ipc(char *ipc_name, BOOL guest_ok) /*************************************************************************** add a new printer service, with defaults coming from service iFrom. ***************************************************************************/ -BOOL lp_add_printer(char *pszPrintername, int iDefaultService) +BOOL lp_add_printer(const char *pszPrintername, int iDefaultService) { - char *comment = "From Printcap"; + const char *comment = "From Printcap"; int i = add_a_service(ServicePtrs[iDefaultService], pszPrintername); if (i < 0) diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c index 46d1128b8e..86489e9587 100644 --- a/source3/printing/pcap.c +++ b/source3/printing/pcap.c @@ -246,7 +246,7 @@ passed as NULL, the configuration will be queried for the name. BOOL pcap_printername_ok(const char *pszPrintername, const char *pszPrintcapname) { char *line=NULL; - char *psz; + const char *psz; char *p,*q; XFILE *pfile; |