]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/parallel.c
Merge changes from CUPS 1.5.1-r9875.
[thirdparty/cups.git] / backend / parallel.c
index 968a4755613d24202c339f5a308ffde0876850f6..125aa8141bdd131284f9bd3021cffabfeeb72a24 100644 (file)
@@ -3,7 +3,7 @@
  *
  *   Parallel port backend for CUPS.
  *
- *   Copyright 2007-2010 by Apple Inc.
+ *   Copyright 2007-2011 by Apple Inc.
  *   Copyright 1997-2007 by Easy Software Products, all rights reserved.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -85,7 +85,7 @@ main(int  argc,                               /* I - Number of command-line arguments (6 or 7) */
                device_fd,              /* Parallel device */
                use_bc;                 /* Read back-channel data? */
   int          copies;                 /* Number of copies to print */
-  size_t       tbytes;                 /* Total number of bytes written */
+  ssize_t      tbytes;                 /* Total number of bytes written */
   struct termios opts;                 /* Parallel port options */
 #if defined(HAVE_SIGACTION) && !defined(HAVE_SIGSET)
   struct sigaction action;             /* Actions for POSIX signals */
@@ -295,7 +295,7 @@ main(int  argc,                             /* I - Number of command-line arguments (6 or 7) */
   if (print_fd != 0)
     close(print_fd);
 
-  return (tbytes < 0 ? CUPS_BACKEND_FAILED : CUPS_BACKEND_OK);
+  return (CUPS_BACKEND_OK);
 }