summaryrefslogtreecommitdiff
path: root/backend/usb-unix.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-06-23 05:26:17 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-06-23 05:26:17 +0000
commit09a101d671d39312a756c325d8463a1a02f582a6 (patch)
tree09a2338172d0eca839ad4f82524f2846aae6ffdd /backend/usb-unix.c
parent3d8365b8dc12c660de084e4047b8648fc377ed16 (diff)
downloadcups-09a101d671d39312a756c325d8463a1a02f582a6.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@334 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/usb-unix.c')
-rw-r--r--backend/usb-unix.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/backend/usb-unix.c b/backend/usb-unix.c
index 477fee2f6..c034a416f 100644
--- a/backend/usb-unix.c
+++ b/backend/usb-unix.c
@@ -1,5 +1,5 @@
/*
- * "$Id: usb-unix.c 6510 2007-05-04 13:08:05Z mike $"
+ * "$Id: usb-unix.c 6591 2007-06-21 20:35:28Z mike $"
*
* USB port backend for the Common UNIX Printing System (CUPS).
*
@@ -578,7 +578,9 @@ side_cb(int print_fd, /* I - Print file */
switch (command)
{
case CUPS_SC_CMD_DRAIN_OUTPUT :
- if (tcdrain(device_fd))
+ if (backendDrainOutput(print_fd, device_fd))
+ status = CUPS_SC_STATUS_IO_ERROR;
+ else if (tcdrain(device_fd))
status = CUPS_SC_STATUS_IO_ERROR;
else
status = CUPS_SC_STATUS_OK;
@@ -618,5 +620,5 @@ side_cb(int print_fd, /* I - Print file */
/*
- * End of "$Id: usb-unix.c 6510 2007-05-04 13:08:05Z mike $".
+ * End of "$Id: usb-unix.c 6591 2007-06-21 20:35:28Z mike $".
*/