summaryrefslogtreecommitdiff
path: root/lib/libcuse
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-12-22 09:55:44 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2015-12-22 09:55:44 +0000
commitbeebd9aac8cc15a48903247f29d9084901e33a92 (patch)
tree914ad18283e7df51a825164fbffddb32f707afdc /lib/libcuse
parent9fb69c9d9d05d902ff05257ad85c0c5640bb0b5c (diff)
Notes
Diffstat (limited to 'lib/libcuse')
-rw-r--r--lib/libcuse/cuse_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcuse/cuse_lib.c b/lib/libcuse/cuse_lib.c
index 321522da09c0..dd25ef8f6c6c 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);