]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/error.c
Merge changes from CUPS 1.6svn-r9939.
[thirdparty/cups.git] / filter / error.c
index 713c024a07fa0f71c601552729008a54515f029f..a73186926826148e965f4af97121b2f58cf5d485 100644 (file)
@@ -1,9 +1,9 @@
 /*
  * "$Id: error.c 7460 2008-04-16 02:19:54Z mike $"
  *
- *   Raster error handling for the Common UNIX Printing System (CUPS).
+ *   Raster error handling for CUPS.
  *
- *   Copyright 2007-2008 by Apple Inc.
+ *   Copyright 2007-2011 by Apple Inc.
  *   Copyright 2007 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -28,8 +28,7 @@
  * Include necessary headers...
  */
 
-#include "image-private.h"
-#include <stdarg.h>
+#include <cups/raster-private.h>
 
 
 /*
@@ -78,7 +77,7 @@ _cupsRasterAddError(const char *f,    /* I - Printf-style error message */
   if (bytes >= sizeof(s))
     return;
 
-  if (bytes > (buf->end - buf->current))
+  if (bytes > (size_t)(buf->end - buf->current))
   {
    /*
     * Allocate more memory...
@@ -139,7 +138,7 @@ _cupsRasterClearError(void)
  *
  * If there are no recent errors, NULL is returned.
  *
- * @since CUPS 1.3@
+ * @since CUPS 1.3/Mac OS X 10.5@
  */
 
 const char *                           /* O - Last error */
@@ -192,7 +191,7 @@ get_error_buffer(void)
   _cups_raster_error_t *buf;           /* Pointer to error buffer */
 
 
- /* 
+ /*
   * Initialize the global data exactly once...
   */