s3-printing: Make printer a const char *.
authorAndreas Schneider <asn@samba.org>
Fri, 10 Feb 2012 12:45:24 +0000 (13:45 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 14 Mar 2012 16:56:14 +0000 (17:56 +0100)
source3/include/nt_printing.h
source3/printing/nt_printing_ads.c

index 08a21615dbae59b260e358c3d6fa25f66b0ea8fa..2243a3d09555ddc48364454e29c49e2fe553504b 100644 (file)
@@ -141,7 +141,9 @@ WERROR nt_printer_publish(TALLOC_CTX *mem_ctx,
 bool is_printer_published(TALLOC_CTX *mem_ctx,
                          const struct auth_session_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 728fefbc444bc875e657c6d4e3f3732f5ab1254c..3551148565de2576e241781cf95ab8bec40c31ab 100644 (file)
@@ -390,7 +390,9 @@ done:
 bool is_printer_published(TALLOC_CTX *mem_ctx,
                          const struct auth_session_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;
@@ -485,7 +487,9 @@ WERROR check_published_printers(struct messaging_context *msg_ctx)
 bool is_printer_published(TALLOC_CTX *mem_ctx,
                          const struct auth_session_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;