mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
And a little more 'const'.
This commit is contained in:
parent
0fd155a06c
commit
2cbbf0ecd3
@ -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)
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user