diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-07-03 13:14:20 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-25 07:25:44 +0100 |
commit | fe40ee148a2861105cf6763263db65cf96bd22d0 (patch) | |
tree | 5d83abe55e42c32feaadba040bd1fc4c16f9c7b3 /source3 | |
parent | 6c35082a941d6cabab220958bb24838b1db2d38e (diff) | |
download | samba-fe40ee148a2861105cf6763263db65cf96bd22d0.tar.gz |
s3:printing: fix some const warnings in print_iprint.c
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/printing/print_iprint.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/printing/print_iprint.c b/source3/printing/print_iprint.c index eeb193c6230..1c9e5a25922 100644 --- a/source3/printing/print_iprint.c +++ b/source3/printing/print_iprint.c @@ -206,19 +206,19 @@ static int iprint_get_server_version(http_t *http, char* serviceUri) static int iprint_cache_add_printer(http_t *http, int reqId, - char *url, + const char *url, struct pcap_cache **pcache) { ipp_t *request = NULL, /* IPP Request */ *response = NULL; /* IPP Response */ ipp_attribute_t *attr; /* Current attribute */ cups_lang_t *language = NULL; /* Default language */ - char *name, /* printer-name attribute */ - *info, /* printer-info attribute */ - smb_enabled, /* smb-enabled attribute */ + const char *name, /* printer-name attribute */ + *info; /* printer-info attribute */ + char smb_enabled, /* smb-enabled attribute */ secure; /* security-enabled attrib. */ - char *httpPath; /* path portion of the printer-uri */ + const char *httpPath; /* path portion of the printer-uri */ static const char *pattrs[] = /* Requested printer attributes */ { @@ -440,7 +440,7 @@ bool iprint_cache_reload(struct pcap_cache **_pcache) { for (i = 0; i<ippGetCount(attr); i++) { - char *url = ippGetString(attr, i, NULL); + const char *url = ippGetString(attr, i, NULL); if (!url || !strlen(url)) continue; iprint_cache_add_printer(http, i+2, url, |