printing: use const in is_printer_published
authorDavid Disseldorp <ddiss@samba.org>
Wed, 24 Apr 2013 12:06:50 +0000 (14:06 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 4 Jun 2013 07:52:26 +0000 (09:52 +0200)
source3/include/nt_printing.h
source3/printing/nt_printing_ads.c

index 16c46584c732ff2c080f08e082a343eb699e4720..658936ce8442c4bcf0fe1590f71bd92cd77d8e3a 100644 (file)
@@ -141,7 +141,8 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
 bool is_printer_published(TALLOC_CTX *mem_ctx,
                          const struct auth_serversupplied_info *server_info,
                          struct messaging_context *msg_ctx,
-                         const char *servername, char *printer, struct GUID *guid,
+                         const char *servername, const char *printer,
+                         struct GUID *guid,
                          struct spoolss_PrinterInfo2 **info2);
 
 WERROR check_published_printers(struct messaging_context *msg_ctx);
index 219124f8021ce96cd78e16a8d97bf931aea82039..572b5418becd2e0e0f799cc1142bd49890e22ebb 100644 (file)
@@ -479,7 +479,8 @@ done:
 bool is_printer_published(TALLOC_CTX *mem_ctx,
                          const struct auth_serversupplied_info *session_info,
                          struct messaging_context *msg_ctx,
-                         const char *servername, char *printer, struct GUID *guid,
+                         const char *servername, const char *printer,
+                         struct GUID *guid,
                          struct spoolss_PrinterInfo2 **info2)
 {
        struct spoolss_PrinterInfo2 *pinfo2 = NULL;
@@ -574,7 +575,8 @@ WERROR check_published_printers(struct messaging_context *msg_ctx)
 bool is_printer_published(TALLOC_CTX *mem_ctx,
                          const struct auth_serversupplied_info *session_info,
                          struct messaging_context *msg_ctx,
-                         const char *servername, char *printer, struct GUID *guid,
+                         const char *servername, const char *printer,
+                         struct GUID *guid,
                          struct spoolss_PrinterInfo2 **info2)
 {
        return False;