test/file-register: cleanups
@@ -562,8 +562,7 @@ static int test_skip(struct io_uring *ring)
goto err;
}
- /* -2 to skip */
- files[90] = -2;
+ files[90] = IORING_REGISTER_FILES_SKIP;
ret = io_uring_register_files_update(ring, 90, &files[90], 1);
if (ret != 1) {
fprintf(stderr, "%s: update ret=%d\n", __FUNCTION__, ret);
@@ -587,7 +586,6 @@ err:
return 1;
}
-
static int test_sparse_updates(void)
{
struct io_uring ring;
@@ -836,4 +834,3 @@ int main(int argc, char *argv[])
return 0;
}
-
