And a little more 'const'.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 20 Jul 2002 23:55:17 +0000 (23:55 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 20 Jul 2002 23:55:17 +0000 (23:55 +0000)
(This used to be commit 2cbbf0ecd33774041dd831956935ab3cf69ce2a6)

source3/param/loadparm.c
source3/printing/pcap.c

index 0602e901a415214e014e564ce1f1028521017865..a5f01c6abf79cad3740a053c34bcc32664af7b2c 100644 (file)
@@ -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)
index 46d1128b8e1d4d472e59f7722a39b5e69a97bb79..86489e9587c18f631d54e8e8bc88b9905ffbd775 100644 (file)
@@ -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;