summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-15 05:56:12 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-15 05:56:12 +0000
commit0a8b4417bcb73b9146c5eb60fdede8d8cbbb437d (patch)
treefa8152a6fbb0e2638bf9066e373e87cfaa773e18
parent10abfb3f87cdbae204a5b49160ef8cbd9e56c090 (diff)
downloadsamba-0a8b4417bcb73b9146c5eb60fdede8d8cbbb437d.tar.gz
samba-0a8b4417bcb73b9146c5eb60fdede8d8cbbb437d.tar.bz2
samba-0a8b4417bcb73b9146c5eb60fdede8d8cbbb437d.zip
Fix warnings by getting the function into a shape the autoprototyper will
read, and add a static. Andrew Bartlett (This used to be commit 919889de78fc3c7bc5dfebcc180385f2f3d7a564)
-rw-r--r--source3/printing/print_cups.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index d41367af8b..cc3941fe96 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -54,15 +54,13 @@ struct printif cups_printif =
* 'cups_passwd_cb()' - The CUPS password callback...
*/
-const char * /* O - Password or NULL */
+static const char * /* O - Password or NULL */
cups_passwd_cb(const char *prompt) /* I - Prompt */
{
/*
* Always return NULL to indicate that no password is available...
*/
- (void)prompt;
-
return (NULL);
}
@@ -209,10 +207,10 @@ void cups_printer_fn(void (*fn)(char *, char *))
/*
* 'cups_printername_ok()' - Provide the equivalent of pcap_printername_ok()
* for CUPS.
+ * O - 1 if printer name OK
+ * I - Name of printer
*/
-
-int /* O - 1 if printer name OK */
-cups_printername_ok(char *name) /* I - Name of printer */
+int cups_printername_ok(const char *name)
{
http_t *http; /* HTTP connection to server */
ipp_t *request, /* IPP Request */