From c3f11e9f0e23d1aba656d9436d9709e39698a87e Mon Sep 17 00:00:00 2001 From: hselasky Date: Tue, 22 Dec 2015 09:55:44 +0000 Subject: Make CUSE usable with platforms where the size of "unsigned long" is different from the size of a pointer. --- lib/libcuse/cuse_lib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/libcuse/cuse_lib.c b/lib/libcuse/cuse_lib.c index 321522d..dd25ef8 100644 --- a/lib/libcuse/cuse_lib.c +++ b/lib/libcuse/cuse_lib.c @@ -711,8 +711,8 @@ cuse_copy_out(const void *src, void *user_dst, int len) if (pe->is_local) { memcpy(user_dst, src, len); } else { - info.local_ptr = (unsigned long)src; - info.peer_ptr = (unsigned long)user_dst; + info.local_ptr = (uintptr_t)src; + info.peer_ptr = (uintptr_t)user_dst; info.length = len; error = ioctl(f_cuse, CUSE_IOCTL_WRITE_DATA, &info); @@ -744,8 +744,8 @@ cuse_copy_in(const void *user_src, void *dst, int len) if (pe->is_local) { memcpy(dst, user_src, len); } else { - info.local_ptr = (unsigned long)dst; - info.peer_ptr = (unsigned long)user_src; + info.local_ptr = (uintptr_t)dst; + info.peer_ptr = (uintptr_t)user_src; info.length = len; error = ioctl(f_cuse, CUSE_IOCTL_READ_DATA, &info); -- cgit v1.1