[CUPS] r9399 - trunk/filter

pipitas pipitas at gmail.com
Fri Dec 3 00:46:21 PST 2010


On 12/03/2010 07:29 AM, cups-dev at easysw.com wrote:
> Author: mike
> Date: 2010-12-02 22:29:20 -0800 (Thu, 02 Dec 2010)
> New Revision: 9399
> Log:
> Fix compile errors (STR #3740)
>
>
> Modified:
>     trunk/filter/bannertops.c
>     trunk/filter/pstext.c
>     trunk/filter/texttops.c
>
> Modified: trunk/filter/bannertops.c
> ===================================================================
> --- trunk/filter/bannertops.c	2010-12-01 23:13:16 UTC (rev 9398)
> +++ trunk/filter/bannertops.c	2010-12-03 06:29:20 UTC (rev 9399)
> @@ -180,7 +180,7 @@
>
>     if (!fp)
>     {
> -    _cupsLangPrintError(stderr, "ERROR", _("Unable to open print file"));
> +    _cupsLangPrintError("ERROR", _("Unable to open print file"));
>       exit(1);
>     }
>
>
> Modified: trunk/filter/pstext.c
> ===================================================================
> --- trunk/filter/pstext.c	2010-12-01 23:13:16 UTC (rev 9398)
> +++ trunk/filter/pstext.c	2010-12-03 06:29:20 UTC (rev 9399)
> @@ -244,7 +244,7 @@
>     }
>     else
>     {
> -    _cupsLangPrintError(stderr, "ERROR", _("Unable to open print file"));
> +    _cupsLangPrintError("ERROR", _("Unable to open print file"));
>       exit(1);
>     }
>
> @@ -260,7 +260,7 @@
>       * Can't open charset file!
>       */
>
> -    _cupsLangPrintError(stderr, "ERROR", _("Unable to open print file"));
> +    _cupsLangPrintError("ERROR", _("Unable to open print file"));
>       exit(1);
>     }
>
>
> Modified: trunk/filter/texttops.c
> ===================================================================
> --- trunk/filter/texttops.c	2010-12-01 23:13:16 UTC (rev 9398)
> +++ trunk/filter/texttops.c	2010-12-03 06:29:20 UTC (rev 9399)
> @@ -260,7 +260,7 @@
>     }
>     else
>     {
> -    _cupsLangPrintError(stderr, "ERROR", _("Unable to open psglyphs"));
> +    _cupsLangPrintError("ERROR", _("Unable to open psglyphs"));
>       exit(1);
>     }
>
> @@ -279,7 +279,7 @@
>         * Can't open charset file!
>         */
>
> -      _cupsLangPrintError(stderr, "ERROR", _("Unable to open charset file"));
> +      _cupsLangPrintError("ERROR", _("Unable to open charset file"));
>         exit(1);
>       }



Thanks.

Now I see the next error:

   Compiling usb.c...
   In file included from usb.c:63:
   usb-unix.c: In function ‘print_device’:
   usb-unix.c:145: warning: passing argument 1 of ‘_cupsLangPrintError’
        from incompatible pointer type
   ../cups/language-private.h:61: note: expected ‘const char *’ but
        argument is of type ‘struct _IO_FILE *’
   usb-unix.c:145: error: too many arguments to function
        ‘_cupsLangPrintError’
   make: *** [usb.o] Error 1





More information about the cups mailing list