- 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);
- }
+ const char *buf;
+ size_t len = vss_get_fec_eof_packet(&buf);
+
+ list_for_each_entry_safe(sc, tmp, &targets, node)
+ if (sc->cq != NULL) {
+ /* ignore return value, closing the target anyway. */
+ (void)write(sc->fd, buf, len);
+ udp_close_target(sc);
+ }