summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h12
-rw-r--r--source3/printing/notify.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 799e3c4985..4afe952705 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -4826,12 +4826,12 @@ void notify_job_username(const char *sharename, uint32 jobid, char *name);
void notify_job_name(const char *sharename, uint32 jobid, char *name);
void notify_job_submitted(const char *sharename, uint32 jobid,
time_t submitted);
-void notify_printer_driver(int snum, char *driver_name);
-void notify_printer_comment(int snum, char *comment);
-void notify_printer_sharename(int snum, char *share_name);
-void notify_printer_printername(int snum, char *printername);
-void notify_printer_port(int snum, char *port_name);
-void notify_printer_location(int snum, char *location);
+void notify_printer_driver(int snum, const char *driver_name);
+void notify_printer_comment(int snum, const char *comment);
+void notify_printer_sharename(int snum, const char *share_name);
+void notify_printer_printername(int snum, const char *printername);
+void notify_printer_port(int snum, const char *port_name);
+void notify_printer_location(int snum, const char *location);
void notify_printer_byname( const char *printername, uint32 change, const char *value );
/* The following definitions come from printing/nt_printing.c */
diff --git a/source3/printing/notify.c b/source3/printing/notify.c
index 756a6c23b9..8d6bdc0b3e 100644
--- a/source3/printing/notify.c
+++ b/source3/printing/notify.c
@@ -469,7 +469,7 @@ void notify_job_submitted(const char *sharename, uint32 jobid,
jobid, sizeof(submitted), (char *)&submitted);
}
-void notify_printer_driver(int snum, char *driver_name)
+void notify_printer_driver(int snum, const char *driver_name)
{
const char *sharename = SERVICE(snum);
@@ -478,7 +478,7 @@ void notify_printer_driver(int snum, char *driver_name)
snum, strlen(driver_name) + 1, driver_name);
}
-void notify_printer_comment(int snum, char *comment)
+void notify_printer_comment(int snum, const char *comment)
{
const char *sharename = SERVICE(snum);
@@ -487,7 +487,7 @@ void notify_printer_comment(int snum, char *comment)
snum, strlen(comment) + 1, comment);
}
-void notify_printer_sharename(int snum, char *share_name)
+void notify_printer_sharename(int snum, const char *share_name)
{
const char *sharename = SERVICE(snum);
@@ -496,7 +496,7 @@ void notify_printer_sharename(int snum, char *share_name)
snum, strlen(share_name) + 1, share_name);
}
-void notify_printer_printername(int snum, char *printername)
+void notify_printer_printername(int snum, const char *printername)
{
const char *sharename = SERVICE(snum);
@@ -505,7 +505,7 @@ void notify_printer_printername(int snum, char *printername)
snum, strlen(printername) + 1, printername);
}
-void notify_printer_port(int snum, char *port_name)
+void notify_printer_port(int snum, const char *port_name)
{
const char *sharename = SERVICE(snum);
@@ -514,7 +514,7 @@ void notify_printer_port(int snum, char *port_name)
snum, strlen(port_name) + 1, port_name);
}
-void notify_printer_location(int snum, char *location)
+void notify_printer_location(int snum, const char *location)
{
const char *sharename = SERVICE(snum);