From: mike Date: Sun, 31 Aug 2003 11:25:35 +0000 (+0000) Subject: Fix CUPS 1.2 compiles... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42aaf921c09da43d91be2a76ba53e89f097e5f9e;p=thirdparty%2Fcups.git Fix CUPS 1.2 compiles... git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@3896 7a7537e8-13f0-0310-91df-b6672ffda945 --- diff --git a/backend/usb.c b/backend/usb.c index a231a4fa09..81f95eeef1 100644 --- a/backend/usb.c +++ b/backend/usb.c @@ -1,5 +1,5 @@ /* - * "$Id: usb.c,v 1.18.2.27 2003/08/30 23:13:00 mike Exp $" + * "$Id: usb.c,v 1.18.2.28 2003/08/31 11:25:33 mike Exp $" * * USB port backend for the Common UNIX Printing System (CUPS). * @@ -244,7 +244,7 @@ main(int argc, /* I - Number of command-line arguments (6 or 7) */ if (!(status & LP_POUTPA)) fputs("WARNING: Media tray empty!\n", stderr); - else if (!(status & LP_PERRORP) + else if (!(status & LP_PERRORP)) fputs("WARNING: Printer fault!\n", stderr); else if (!(status & LP_PSELECD)) fputs("WARNING: Printer off-line.\n", stderr); @@ -798,5 +798,5 @@ open_device(const char *uri) /* I - Device URI */ /* - * End of "$Id: usb.c,v 1.18.2.27 2003/08/30 23:13:00 mike Exp $". + * End of "$Id: usb.c,v 1.18.2.28 2003/08/31 11:25:33 mike Exp $". */ diff --git a/cups/Makefile b/cups/Makefile index 041b456cec..9a85724308 100644 --- a/cups/Makefile +++ b/cups/Makefile @@ -1,5 +1,5 @@ # -# "$Id: Makefile,v 1.53.2.24 2003/04/01 15:22:29 swdev Exp $" +# "$Id: Makefile,v 1.53.2.25 2003/08/31 11:25:34 mike Exp $" # # API library Makefile for the Common UNIX Printing System (CUPS). # @@ -30,10 +30,11 @@ include ../Makedefs # Object files... # -LIBOBJS = attr.o dest.o emit.o encode.o extended.o http.o http-addr.o \ - http-support.o ipp.o ipp-support.o langprintf.o language.o \ - mark.o md5.o md5passwd.o normalize.o options.o page.o ppd.o \ - snprintf.o string.o tempfile.o transcode.o usersys.o util.o +LIBOBJS = attr.o auth.o dest.o emit.o encode.o extended.o getputfile.o \ + http.o http-addr.o http-support.o ipp.o ipp-support.o \ + langprintf.o language.o mark.o md5.o md5passwd.o normalize.o \ + options.o page.o ppd.o snprintf.o string.o tempfile.o \ + transcode.o usersys.o util.o OBJS = $(LIBOBJS) testhttp.o testi18n.o testipp.o testlang.o @@ -218,5 +219,5 @@ include Dependencies # -# End of "$Id: Makefile,v 1.53.2.24 2003/04/01 15:22:29 swdev Exp $". +# End of "$Id: Makefile,v 1.53.2.25 2003/08/31 11:25:34 mike Exp $". # diff --git a/cups/auth.c b/cups/auth.c index e41ba945f9..7a7264f54b 100644 --- a/cups/auth.c +++ b/cups/auth.c @@ -1,5 +1,5 @@ /* - * "$Id: auth.c,v 1.1 2003/08/29 21:26:40 mike Exp $" + * "$Id: auth.c,v 1.1.2.1 2003/08/31 11:25:35 mike Exp $" * * Authentication functions for the Common UNIX Printing System (CUPS). * @@ -179,7 +179,7 @@ cups_local_auth(http_t *http) /* I - HTTP connection to server */ * See if we are accessing localhost... */ - if (ntohl(http->hostaddr.sin_addr.s_addr) != 0x7f000001 && + if (!httpAddrLocalhost(&http->hostaddr) && strcasecmp(http->hostname, "localhost") != 0) { DEBUG_puts("cups_local_auth: Not a local connection!"); @@ -234,5 +234,5 @@ cups_local_auth(http_t *http) /* I - HTTP connection to server */ /* - * End of "$Id: auth.c,v 1.1 2003/08/29 21:26:40 mike Exp $". + * End of "$Id: auth.c,v 1.1.2.1 2003/08/31 11:25:35 mike Exp $". */ diff --git a/cups/getputfile.c b/cups/getputfile.c index bb38244cb2..d6b8ef9bff 100644 --- a/cups/getputfile.c +++ b/cups/getputfile.c @@ -1,5 +1,5 @@ /* - * "$Id: getputfile.c,v 1.1 2003/08/29 21:26:41 mike Exp $" + * "$Id: getputfile.c,v 1.1.2.1 2003/08/31 11:25:35 mike Exp $" * * Get/put file functions for the Common UNIX Printing System (CUPS). * @@ -431,5 +431,5 @@ cupsPutFile(http_t *http, /* I - HTTP connection to server */ /* - * End of "$Id: getputfile.c,v 1.1 2003/08/29 21:26:41 mike Exp $". + * End of "$Id: getputfile.c,v 1.1.2.1 2003/08/31 11:25:35 mike Exp $". */