diff options
author | Eric Anholt <eric@anholt.net> | 2008-05-07 16:00:58 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-05-07 16:00:58 -0700 |
commit | effc6d998f080ba6f9c81d1b4b0e75a42be0238e (patch) | |
tree | 6a024b509dd96ffb8a7ffbdabea0aa43ac6296a7 /tests/gem_readwrite.c | |
parent | aa0621a19ffcdf2a92eac08fa4950e0423a8dd2b (diff) |
GEM: fix testcases for new ioctl args.
Diffstat (limited to 'tests/gem_readwrite.c')
-rw-r--r-- | tests/gem_readwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_readwrite.c b/tests/gem_readwrite.c index 5065732d..1cc8a3e2 100644 --- a/tests/gem_readwrite.c +++ b/tests/gem_readwrite.c @@ -48,7 +48,7 @@ int do_read(int fd, int handle, void *buf, int offset, int size) memset(&read, 0, sizeof(read)); read.handle = handle; - read.data = buf; + read.data_ptr = (uintptr_t)buf; read.size = size; read.offset = offset; @@ -61,7 +61,7 @@ int do_write(int fd, int handle, void *buf, int offset, int size) memset(&write, 0, sizeof(write)); write.handle = handle; - write.data = buf; + write.data_ptr = (uintptr_t)buf; write.size = size; write.offset = offset; |