From b7e86eb7db6449180e13df9ff42e0c51f0d55bc4 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 17 Jan 2019 18:14:21 -0700 Subject: 32-bit fixes Signed-off-by: Jens Axboe --- test/Makefile | 1 - test/io_uring-cp.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'test') 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 #include #include -#include +#include #include #include #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); -- cgit