From 936c86d3c42909a0d23c47ba7ed96eb5f5b40422 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Mon, 23 Jul 2007 19:52:44 +0000 Subject: - Fix build on amd64 Submitted by: miwi (via private mail) Approved by: maintainer --- print/hplip/files/patch-io_hpiod_system.cpp | 11 +++++++++++ print/hplip3/files/patch-io_hpiod_system.cpp | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 print/hplip/files/patch-io_hpiod_system.cpp create mode 100644 print/hplip3/files/patch-io_hpiod_system.cpp (limited to 'print') diff --git a/print/hplip/files/patch-io_hpiod_system.cpp b/print/hplip/files/patch-io_hpiod_system.cpp new file mode 100644 index 000000000000..c8fd116dcd6c --- /dev/null +++ b/print/hplip/files/patch-io_hpiod_system.cpp @@ -0,0 +1,11 @@ +--- io/hpiod/system.cpp.orig Mon Jul 23 14:08:51 2007 ++++ io/hpiod/system.cpp Mon Jul 23 14:09:52 2007 +@@ -633,7 +633,7 @@ + list_for_each(p, &head.list) + { + psa = list_entry(p, SessionAttributes, list); +- lstLen += sprintf(lst+lstLen, "t[%d] d[%d] socket=%d\n", (int)psa->tid, psa->descriptor, psa->sockid); ++ lstLen += sprintf(lst+lstLen, "t[%d] d[%d] socket=%d\n", (unsigned long)psa->tid, psa->descriptor, psa->sockid); + } + + len = sprintf(sendBuf, "msg=PStateResult\nresult-code=%d\nlength=%d\ndata:\n%s", R_AOK, lstLen, lst); diff --git a/print/hplip3/files/patch-io_hpiod_system.cpp b/print/hplip3/files/patch-io_hpiod_system.cpp new file mode 100644 index 000000000000..c8fd116dcd6c --- /dev/null +++ b/print/hplip3/files/patch-io_hpiod_system.cpp @@ -0,0 +1,11 @@ +--- io/hpiod/system.cpp.orig Mon Jul 23 14:08:51 2007 ++++ io/hpiod/system.cpp Mon Jul 23 14:09:52 2007 +@@ -633,7 +633,7 @@ + list_for_each(p, &head.list) + { + psa = list_entry(p, SessionAttributes, list); +- lstLen += sprintf(lst+lstLen, "t[%d] d[%d] socket=%d\n", (int)psa->tid, psa->descriptor, psa->sockid); ++ lstLen += sprintf(lst+lstLen, "t[%d] d[%d] socket=%d\n", (unsigned long)psa->tid, psa->descriptor, psa->sockid); + } + + len = sprintf(sendBuf, "msg=PStateResult\nresult-code=%d\nlength=%d\ndata:\n%s", R_AOK, lstLen, lst); -- cgit v1.2.3