summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-04-04 09:02:32 -0600
committerJens Axboe <axboe@kernel.dk>2022-04-04 09:02:32 -0600
commit215c27ac35d334d6be9c8982b52faf97ff78c26f (patch)
treeb6e188d09471226f77b9d02e10e093d83e1eb86f
parent318b08a98f1dc3c03fab3795de7fcd0290b36328 (diff)
parent1b437f50fbfc74c1814cb909766147457d079a5f (diff)
downloadliburing-215c27ac35d334d6be9c8982b52faf97ff78c26f.tar.gz
liburing-215c27ac35d334d6be9c8982b52faf97ff78c26f.tar.bz2
Merge branch 'dankamongmen/remove-double-cast' of https://github.com/dankamongmen/liburing
* 'dankamongmen/remove-double-cast' of https://github.com/dankamongmen/liburing: remove double casts
-rw-r--r--test/recv-msgall-stream.c2
-rw-r--r--test/recv-msgall.c2
-rw-r--r--test/send_recv.c2
-rw-r--r--test/send_recvmsg.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/test/recv-msgall-stream.c b/test/recv-msgall-stream.c
index a4dfe6f..a188cc1 100644
--- a/test/recv-msgall-stream.c
+++ b/test/recv-msgall-stream.c
@@ -362,7 +362,7 @@ static int test(int use_recvmsg, int use_sync)
do_send(&rd);
pthread_join(recv_thread, &retval);
- return (int)(intptr_t)retval;
+ return (intptr_t)retval;
}
int main(int argc, char *argv[])
diff --git a/test/recv-msgall.c b/test/recv-msgall.c
index d77434d..5f202b4 100644
--- a/test/recv-msgall.c
+++ b/test/recv-msgall.c
@@ -241,7 +241,7 @@ static int test(int use_recvmsg)
pthread_mutex_lock(&rd.mutex);
do_send();
pthread_join(recv_thread, &retval);
- return (int)(intptr_t)retval;
+ return (intptr_t)retval;
}
int main(int argc, char *argv[])
diff --git a/test/send_recv.c b/test/send_recv.c
index ed45f83..ad8ea0e 100644
--- a/test/send_recv.c
+++ b/test/send_recv.c
@@ -254,7 +254,7 @@ static int test(int use_sqthread, int regfiles)
pthread_mutex_lock(&rd.mutex);
do_send();
pthread_join(recv_thread, &retval);
- return (int)(intptr_t)retval;
+ return (intptr_t)retval;
}
int main(int argc, char *argv[])
diff --git a/test/send_recvmsg.c b/test/send_recvmsg.c
index 2ff8d9d..43121f0 100644
--- a/test/send_recvmsg.c
+++ b/test/send_recvmsg.c
@@ -305,7 +305,7 @@ static int test(int buf_select, int no_buf_add, int iov_count)
pthread_mutex_lock(&mutex);
do_sendmsg();
pthread_join(recv_thread, &retval);
- ret = (int)(intptr_t)retval;
+ ret = (intptr_t)retval;
return ret;
}