1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

And a little more 'const'.

This commit is contained in:
Andrew Bartlett -
parent 0fd155a06c
commit 2cbbf0ecd3
2 changed files with 3 additions and 3 deletions

View 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)

View 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;