summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornick black <dankamongmen@gmail.com>2022-04-04 10:57:27 -0400
committernick black <dankamongmen@gmail.com>2022-04-04 10:59:19 -0400
commit1b437f50fbfc74c1814cb909766147457d079a5f (patch)
tree1f0f2be7941a6e143bab4a5c4bcd998b9c5a35dd
parent000dd873f4da9b6052792c93d4d0978bb4ea3252 (diff)
downloadliburing-1b437f50fbfc74c1814cb909766147457d079a5f.tar.gz
liburing-1b437f50fbfc74c1814cb909766147457d079a5f.tar.bz2
remove double casts
Signed-off-by: nick black <nickblack@linux.com>
-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;
}