summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);