/*
- * "$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
*/
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...
/*
- * End of "$Id: tbcp.c 6800 2007-08-16 18:28:44Z mike $".
+ * End of "$Id$".
*/