diff --git a/tests/io_uring/iouring.c b/tests/io_uring/iouring.c index be22811..73dac99 100644 --- a/tests/io_uring/iouring.c +++ b/tests/io_uring/iouring.c @@ -236,9 +236,9 @@ int uring_import(int fd, struct io_uring *ring, struct io_uring_params *params) ring->enter_ring_fd = fd; ring->sq.ring_sz = params->sq_off.array + - params->sq_entries * sizeof(unsigned); + params->sq_entries *sizeof(unsigned); ring->cq.ring_sz = params->cq_off.cqes + - params->cq_entries * sizeof(struct io_uring_cqe); + params->cq_entries *sizeof(struct io_uring_cqe); ring->sq.ring_ptr = mmap(NULL, ring->sq.ring_sz, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, @@ -266,7 +266,7 @@ int uring_import(int fd, struct io_uring *ring, struct io_uring_params *params) ring->sq.array = ring->sq.ring_ptr + params->sq_off.array; ring->sq.sqes = mmap(NULL, - params->sq_entries * sizeof(struct io_uring_sqe), + params->sq_entries *sizeof(struct io_uring_sqe), PROT_READ | PROT_WRITE, MAP_SHARED | MAP_POPULATE, fd, IORING_OFF_SQES); if (ring->sq.sqes == MAP_FAILED) diff --git a/tests/time_change/test b/tests/time_change/test index 6d2c654..2c15524 100755 --- a/tests/time_change/test +++ b/tests/time_change/test @@ -169,7 +169,7 @@ sub test_adjtime_setoffset { filter_cleanup(); } -test_adjtime_setoffset( "adjtimex", "adjtimex", 42, 123456 ); +test_adjtime_setoffset( "adjtimex", "adjtimex", 42, 123456 ); test_adjtime_setoffset( "posix", "clock_adjtime", -10, 123456 ); test_adjtime_setoffset( "adjtimex", "adjtimex", 0, 0 ); @@ -243,8 +243,8 @@ sub test_adjtime_ntpval_all { my $FC = ( 1000 << 16 ); test_adjtime_ntpval_all( "adjust", 42, 42, -42, -42 ); -test_adjtime_ntpval_all( "offset", 100, "-?[0-9]+", 200, "-?[0-9]+" ); +test_adjtime_ntpval_all( "offset", 100, "-?[0-9]+", 200, "-?[0-9]+" ); test_adjtime_ntpval_all( "freq", 42, 42 * $FC, -42, -42 * $FC ); -test_adjtime_ntpval_all( "status", 0, "[0-9]+", 0, "[0-9]+" ); +test_adjtime_ntpval_all( "status", 0, "[0-9]+", 0, "[0-9]+" ); test_adjtime_ntpval_all( "tai", 42, 42, 1234, 1234 ); -test_adjtime_ntpval_all( "tick", 0, "-?[0-9]+", 0, "-?[0-9]+" ); +test_adjtime_ntpval_all( "tick", 0, "-?[0-9]+", 0, "-?[0-9]+" ); diff --git a/tests/time_change/test_adjtime.c b/tests/time_change/test_adjtime.c index 9467779..a1f89d7 100644 --- a/tests/time_change/test_adjtime.c +++ b/tests/time_change/test_adjtime.c @@ -122,7 +122,7 @@ static void setter_tick(struct timex *txc, long v) int main(int argc, char **argv) { - int (*f_adjtimex)(struct timex * txc); + int (*f_adjtimex)(struct timex *txc); const char *mode, *op; int ret;