summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-01-17 18:14:21 -0700
committerJens Axboe <axboe@kernel.dk>2019-01-17 18:14:21 -0700
commitb7e86eb7db6449180e13df9ff42e0c51f0d55bc4 (patch)
tree5aff38fe2ef52db50a89821f18c0cf1a478eda3a
parent5789a6351a2ae69e810fca79b9e9b68797169e17 (diff)
32-bit fixes
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/Makefile1
-rw-r--r--test/io_uring-cp.c4
2 files changed, 2 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile
index 574f90b..1ec920d 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,4 +1,3 @@
-CC = gcc
CFLAGS ?= -g -O2 -Wall -D_GNU_SOURCE -L../src/
all_targets += io_uring-test io_uring-cp poll poll-cancel
diff --git a/test/io_uring-cp.c b/test/io_uring-cp.c
index d1f9769..0b75208 100644
--- a/test/io_uring-cp.c
+++ b/test/io_uring-cp.c
@@ -6,7 +6,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
-#include <assert.h>
+#include <inttypes.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "../src/liburing.h"
@@ -107,7 +107,7 @@ static int complete_writes(unsigned *writes)
static void queue_write(int fd, struct io_uring_cqe *cqe)
{
- struct io_data *data = (struct io_data *) cqe->user_data;
+ struct io_data *data = (struct io_data *) (uintptr_t) cqe->user_data;
struct io_uring_sqe *sqe;
sqe = io_uring_get_sqe(&out_ring);