-static void udp_shutdown_targets(void)
-{
- struct sender_client *sc, *tmp;
- const char *buf = NULL;
- size_t len = 0; /* STFU, gcc */
-
- list_for_each_entry_safe(sc, tmp, &targets, node) {
- int ubuntu_glibc_headers_suck;
- if (sc->fd < 0)
- continue;
- if (!buf)
- len = vss_get_fec_eof_packet(&buf);
- /* ignore return value, we're closing the target anyway. */
- ubuntu_glibc_headers_suck = write(sc->fd, buf, len); /* STFU */
- udp_close_target(sc);
- }
-}
-