aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-07-23 19:52:44 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-07-23 19:52:44 +0000
commit936c86d3c42909a0d23c47ba7ed96eb5f5b40422 (patch)
tree7011386a33cbb25a6447ca18caa6018d88883dfa /print
parent2d4141bb1dcc390de059918bce9011cba2464088 (diff)
downloadports-936c86d3c42909a0d23c47ba7ed96eb5f5b40422.tar.gz
ports-936c86d3c42909a0d23c47ba7ed96eb5f5b40422.zip
- Fix build on amd64
Submitted by: miwi (via private mail) Approved by: maintainer
Notes
Notes: svn path=/head/; revision=196146
Diffstat (limited to 'print')
-rw-r--r--print/hplip/files/patch-io_hpiod_system.cpp11
-rw-r--r--print/hplip3/files/patch-io_hpiod_system.cpp11
2 files changed, 22 insertions, 0 deletions
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);