X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fpapd%2Fprint_cups.c;h=ca8644c741aa72094de71930e97cff0055e5de45;hb=53b0b6204387cf693280781355e0f27700f8eace;hp=c0e293693adc2d76cbe792d9e98713df2fdecf18;hpb=b8c1894353b62eb52e59d4e0150fd3c25dcd86ba;p=netatalk.git diff --git a/etc/papd/print_cups.c b/etc/papd/print_cups.c index c0e29369..ca8644c7 100644 --- a/etc/papd/print_cups.c +++ b/etc/papd/print_cups.c @@ -1,5 +1,5 @@ /* - * $Id: print_cups.c,v 1.5 2009-10-29 11:35:58 didg Exp $ + * $Id: print_cups.c,v 1.6 2010-01-26 20:43:11 didg Exp $ * * Copyright 2004 Bjoern Fernhomberg. * @@ -60,13 +60,13 @@ static const char* cups_status_msg[] = { }; /* Local functions */ -static int convert_to_mac_name ( char *encoding, char * inptr, char * outptr, size_t outlen); +static int convert_to_mac_name ( const char *encoding, char * inptr, char * outptr, size_t outlen); static size_t to_ascii ( char *inbuf, char **outbuf); static int cups_mangle_printer_name ( struct printer *pr, struct printer *printers); static void cups_free_printer ( struct printer *pr); -char * cups_get_language (void) +const char * cups_get_language (void) { cups_lang_t *language; @@ -523,7 +523,7 @@ to_ascii ( char *inptr, char **outptr) * Returns: -1 on failure, length of name on success; outpr contains name in MacRoman */ -static int convert_to_mac_name ( char * encoding, char * inptr, char * outptr, size_t outlen) +static int convert_to_mac_name ( const char * encoding, char * inptr, char * outptr, size_t outlen) { char *outbuf; char *soptr;