summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-04-04 20:04:07 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-04-04 20:04:07 +0200
commit422f8d0ca9745a16b1f46710c621fc9f98200bcf (patch)
tree24e91ad38adfd824c624a4a46889e6102b913225 /lib/thread.c
parentb394fc99bc4b555aa3c78521439b28f1ff8886ef (diff)
parentb3cfe637a66a5de00c72125f5fa051155ccb4a29 (diff)
Merge branch 'master'
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 6138e79718..e707fc584c 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -1037,28 +1037,6 @@ thread_process_fds_helper (struct thread_master *m, struct thread *thread, threa
#if defined(HAVE_POLL)
-#if defined(HAVE_SNMP)
-/* add snmp fds to poll set */
-static void
-add_snmp_pollfds(struct thread_master *m, fd_set *snmpfds, int fdsetsize)
-{
- int i;
- m->handler.pfdcountsnmp = m->handler.pfdcount;
- /* cycle trough fds and add neccessary fds to poll set */
- for (i=0;i<fdsetsize;++i)
- {
- if (FD_ISSET(i, snmpfds))
- {
- assert (m->handler.pfdcountsnmp <= m->handler.pfdsize);
-
- m->handler.pfds[m->handler.pfdcountsnmp].fd = i;
- m->handler.pfds[m->handler.pfdcountsnmp].events = POLLIN;
- m->handler.pfdcountsnmp++;
- }
- }
-}
-#endif
-
/* check poll events */
static void
check_pollfds(struct thread_master *m, fd_set *readfd, int num)