openbsd-ports/print/cups/patches/patch-cgi-bin_admin_c

22 lines
1.0 KiB
Plaintext
Raw Normal View History

$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 */