-static void udp_shutdown_targets(void)
-{
- struct udp_target *ut, *tmp;
- const char *buf = NULL;
- size_t len = 0; /* STFU, gcc */
-
- list_for_each_entry_safe(ut, tmp, &targets, node) {
- int ubuntu_glibc_headers_suck;
- if (ut->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(ut->fd, buf, len); /* STFU */
- udp_close_target(ut);
- }
-}
-