- Fix build on amd64

Submitted by:	miwi (via private mail)
Approved by:	maintainer
This commit is contained in:
Martin Wilke 2007-07-23 19:52:44 +00:00
parent 2d4141bb1d
commit 936c86d3c4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196146
2 changed files with 22 additions and 0 deletions

View file

@ -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);

View file

@ -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);