Reap dead code in lio_kqueue_test and aio_kqueue_test

MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D35358
This commit is contained in:
Alan Somers 2022-05-30 12:34:49 -06:00
parent 57082ce8c4
commit f10dd8af4b
2 changed files with 4 additions and 8 deletions

View File

@ -59,7 +59,7 @@ main (int argc, char *argv[])
{
struct aiocb **iocb, *kq_iocb;
char *file, pathname[sizeof(PATH_TEMPLATE)+1];
struct kevent ke, kq_returned;
struct kevent kq_returned;
struct timespec ts;
char buffer[32768];
int max_queue_per_proc;
@ -156,8 +156,7 @@ main (int argc, char *argv[])
for (;;) {
bzero(&ke, sizeof(ke));
bzero(&kq_returned, sizeof(ke));
bzero(&kq_returned, sizeof(kq_returned));
ts.tv_sec = 0;
ts.tv_nsec = 1;
result = kevent(kq, NULL, 0,

View File

@ -63,7 +63,7 @@ main(int argc, char *argv[])
size_t max_queue_per_proc_size;
char buffer[32768];
int kq;
struct kevent ke, kq_returned;
struct kevent kq_returned;
struct timespec ts;
struct sigevent sig;
time_t time1, time2;
@ -153,15 +153,12 @@ main(int argc, char *argv[])
}
for (;;) {
bzero(&ke, sizeof(ke));
bzero(&kq_returned, sizeof(ke));
bzero(&kq_returned, sizeof(kq_returned));
ts.tv_sec = 0;
ts.tv_nsec = 1;
#ifdef DEBUG
printf("FOO lio %d -> %p\n", j, lio[j]);
#endif
EV_SET(&ke, (uintptr_t)lio[j],
EVFILT_LIO, EV_ONESHOT, 0, 0, iocb[j]);
result = kevent(kq, NULL, 0,
&kq_returned, 1, &ts);
error = errno;