diff options
| author | 2000-09-10 22:18:49 +0000 | |
|---|---|---|
| committer | 2000-09-10 22:18:49 +0000 | |
| commit | d93e0e84c97cebac079f70fff8dc89159f3b98dd (patch) | |
| tree | 7f86d205971f5cbcf2c85511493b3769a143190e /src/readwrite.c | |
| parent | Added control files for Debian packages. (diff) | |
Work around compiler warnings for int/ptr casts.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@38 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to '')
| -rw-r--r-- | src/readwrite.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/readwrite.c b/src/readwrite.c index 1e12b6c..333db8a 100644 --- a/src/readwrite.c +++ b/src/readwrite.c @@ -31,7 +31,7 @@ int raw1394_start_read(struct raw1394_handle *handle, nodeid_t node, req->address = ((__u64)node << 48) | addr; req->length = length; - req->recvb = (__u64)buffer; + req->recvb = ptr2int(buffer); return (int)write(handle->fd, req, sizeof(*req)); } @@ -50,7 +50,7 @@ int raw1394_start_write(struct raw1394_handle *handle, nodeid_t node, req->address = ((__u64)node << 48) | addr; req->length = length; - req->sendb = (__u64)data; + req->sendb = ptr2int(data); return (int)write(handle->fd, req, sizeof(*req)); } @@ -74,8 +74,8 @@ int raw1394_start_lock(struct raw1394_handle *handle, nodeid_t node, req->tag = tag; req->address = ((__u64)node << 48) | addr; - req->sendb = (__u64)sendbuf; - req->recvb = (__u64)result; + req->sendb = ptr2int(sendbuf); + req->recvb = ptr2int(result); req->misc = extcode; switch (extcode) { @@ -110,7 +110,7 @@ int raw1394_start_iso_write(struct raw1394_handle *handle, unsigned int channel, req->address = ((__u64)channel << 48) | speed; req->misc = (tag << 16) | sy; req->length = length; - req->sendb = data; + req->sendb = ptr2int(data); return (int)write(handle->fd, req, sizeof(*req)); } |
