openbsd-ports/print/cups/patches/patch-cgi-bin_admin_c
mbalmer d5c1f39165 Update to CUPS 1.2.4, which has lots of improvements over the old version
we had, like better support for foreign languages and the usual plethora
of bugfixes.

tested on various architectures and with various applications that use CUPS
as their printing system.  I verified that all ports that are depending on
CUPS still build.
2006-10-01 10:43:38 +00:00

22 lines
1.0 KiB
Plaintext

$OpenBSD: patch-cgi-bin_admin_c,v 1.2 2006/10/01 10:43:38 mbalmer Exp $
--- cgi-bin/admin.c.orig Wed Sep 20 10:51:31 2006
+++ cgi-bin/admin.c Wed Sep 20 10:52:38 2006
@@ -237,7 +237,7 @@ do_am_class(http_t *http, /* I - HTTP c
*response; /* IPP response */
ipp_attribute_t *attr; /* member-uris attribute */
char uri[HTTP_MAX_URI]; /* Device or printer URI */
- const char *name, /* Pointer to class name */
+ const signed char *name, /* Pointer to class name */
*ptr; /* Pointer to CGI variable */
const char *title; /* Title of page */
static const char * const pattrs[] = /* Requested printer attributes */
@@ -517,7 +517,7 @@ do_am_printer(http_t *http, /* I - HTTP
*uriptr; /* Pointer into URI */
int maxrate; /* Maximum baud rate */
char baudrate[255]; /* Baud rate string */
- const char *name, /* Pointer to class name */
+ const signed char *name, /* Pointer to class name */
*ptr; /* Pointer to CGI variable */
const char *title; /* Title of page */
static int baudrates[] = /* Baud rates */