aboutsummaryrefslogtreecommitdiff
path: root/print/hplip3/files/patch-io_hpiod_mlc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'print/hplip3/files/patch-io_hpiod_mlc.cpp')
-rw-r--r--print/hplip3/files/patch-io_hpiod_mlc.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/print/hplip3/files/patch-io_hpiod_mlc.cpp b/print/hplip3/files/patch-io_hpiod_mlc.cpp
new file mode 100644
index 000000000000..a2c186607052
--- /dev/null
+++ b/print/hplip3/files/patch-io_hpiod_mlc.cpp
@@ -0,0 +1,19 @@
+--- io/hpiod/mlc.cpp.orig Tue May 23 15:27:16 2006
++++ io/hpiod/mlc.cpp Tue May 23 15:29:40 2006
+@@ -73,6 +73,7 @@
+ MLCError *pError;
+ MlcChannel *pC;
+ int i, len, size;
++ static int cnt=0;
+
+ pCmd = (MLCCmd *)buf;
+
+@@ -122,7 +123,7 @@
+ MlcForwardReply(fd, (unsigned char *)pCreditReply, sizeof(MLCCreditReply));
+ break;
+ case MLC_CREDIT_REQUEST:
+- static int cnt=0;
++ cnt = 0;
+ pCreditReq = (MLCCreditRequest *)buf;
+ if (cnt++ < 5)
+ syslog(LOG_ERR, "unexpected MLCCreditRequest: cmd=%x, hid=%x, pid=%x, credit=%d: %s %d\n", pCreditReq->cmd,