]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - monitor/tbcp.c
Fix up svn:keywords for all files.
[thirdparty/cups.git] / monitor / tbcp.c
index 4170d493b6ba0516125fb8df063a59b7a014f487..9ed1e00e777482f1311467c1af58ac767c59d7f4 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: tbcp.c 6800 2007-08-16 18:28:44Z mike $"
+ * "$Id$"
  *
  *   TBCP port monitor for CUPS.
  *
- *   Copyright 2007-2010 by Apple Inc.
+ *   Copyright 2007-2012 by Apple Inc.
  *   Copyright 1993-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
@@ -93,11 +93,8 @@ main(int  argc,                              /* I - Number of command-line args */
     */
 
     linelen = sizeof(line);
-    if (psgets(line, &linelen, fp) == NULL)
-    {
-      fputs("ERROR: Empty print file!\n", stderr);
-      return (1);
-    }
+    if (!psgets(line, &linelen, fp))
+      break;
 
    /*
     * Handle leading PJL fun...
@@ -281,5 +278,5 @@ pswrite(const char *buf,            /* I - Buffer to write */
 
 
 /*
- * End of "$Id: tbcp.c 6800 2007-08-16 18:28:44Z mike $".
+ * End of "$Id$".
  */