summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2007-09-25 15:22:09 -0400
committerFrank Ch. Eigler <fche@elastic.org>2007-09-25 15:22:09 -0400
commiteab72760b4ec098647a24d4095966699796da377 (patch)
tree743eeb9d7d548ffed53a4c8afb3003895892f088
parent1560c9c96e666c7e5893f2c20ed12c0ddd7cb600 (diff)
downloadsystemtap-steved-eab72760b4ec098647a24d4095966699796da377.tar.gz
systemtap-steved-eab72760b4ec098647a24d4095966699796da377.tar.xz
systemtap-steved-eab72760b4ec098647a24d4095966699796da377.zip
* build fix on rhel4
2007-09-25 Frank Ch. Eigler <fche@elastic.org> * socket.stp (__i2n_ip_proto): Add a cast for 32-bit compatibility.
-rw-r--r--tapset/ChangeLog4
-rw-r--r--tapset/nfs_proc.stp2
2 files changed, 5 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog
index feabc0bf..5cd5a6d5 100644
--- a/tapset/ChangeLog
+++ b/tapset/ChangeLog
@@ -1,5 +1,9 @@
2007-09-25 Frank Ch. Eigler <fche@elastic.org>
+ * socket.stp (__i2n_ip_proto): Add a cast for 32-bit compatibility.
+
+2007-09-25 Frank Ch. Eigler <fche@elastic.org>
+
* signal.stp (_signal.send.part*): Remove sinfo alias variable,
since it's a struct rather than integral value.
diff --git a/tapset/nfs_proc.stp b/tapset/nfs_proc.stp
index dd46544f..3ccd016b 100644
--- a/tapset/nfs_proc.stp
+++ b/tapset/nfs_proc.stp
@@ -41,7 +41,7 @@
*/
function __i2n_ip_proto :long(dir:long,index:long) %{ /* pure */
int index = (int) (THIS->index);
- struct inode * dir = (struct inode *)(THIS->dir);
+ struct inode * dir = (struct inode *)(uintptr_t)(THIS->dir);
struct rpc_clnt * clnt = NFS_CLIENT(dir); /* FIXME: deref hazard! */
struct rpc_xprt * cl_xprt = kread(&(clnt->cl_xprt));
/* sockaddr_storage is used since 2.6.19. Need cast*/