]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Remove unused variable cupsd_kqueue_changes 472/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 12 Sep 2022 14:52:19 +0000 (10:52 -0400)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 12 Sep 2022 14:52:19 +0000 (10:52 -0400)
scheduler/select.c

index 06079c37a0860db5e4a24c2c2b59001cec62a3ac..173155538ba325f4856742a902a185c4a99ceaef 100644 (file)
@@ -195,8 +195,7 @@ static int          cupsd_in_select = 0;
 #endif /* HAVE_EPOLL || HAVE_KQUEUE */
 
 #ifdef HAVE_KQUEUE
-static int             cupsd_kqueue_fd = -1,
-                       cupsd_kqueue_changes = 0;
+static int             cupsd_kqueue_fd = -1;
 static struct kevent   *cupsd_kqueue_events = NULL;
 #elif defined(HAVE_POLL)
 static int             cupsd_alloc_pollfds = 0,
@@ -419,8 +418,6 @@ cupsdDoSelect(long timeout)         /* I - Timeout in seconds */
   else
     nfds = kevent(cupsd_kqueue_fd, NULL, 0, cupsd_kqueue_events, MaxFDs, NULL);
 
-  cupsd_kqueue_changes = 0;
-
   for (i = nfds, event = cupsd_kqueue_events; i > 0; i --, event ++)
   {
     fdptr = (_cupsd_fd_t *)event->udata;
@@ -805,7 +802,6 @@ cupsdStartSelect(void)
 
 #elif defined(HAVE_KQUEUE)
   cupsd_kqueue_fd      = kqueue();
-  cupsd_kqueue_changes = 0;
   cupsd_kqueue_events  = calloc((size_t)MaxFDs, sizeof(struct kevent));
 
 #elif defined(HAVE_POLL)
@@ -856,8 +852,6 @@ cupsdStopSelect(void)
     cupsd_kqueue_fd = -1;
   }
 
-  cupsd_kqueue_changes = 0;
-
 #elif defined(HAVE_POLL)
 #  ifdef HAVE_EPOLL
   if (cupsd_epoll_events)