#include <regex.h>
#include <sys/time.h>
-#include <dirent.h>
#include <sys/socket.h>
#include <netinet/udp.h>
#include <net/if.h>
const char *buf;
size_t len = vss_get_fec_eof_packet(&buf);
- /* ignore return value, closing the target anyway. */
- (void)write(sc->fd, buf, len);
+ /*
+ * Ignore the return value of wirte() since we are closing the target
+ * anyway. The sole purpose of the "do_nothing" statement is to silence
+ * gcc.
+ */
+ if (write(sc->fd, buf, len))
+ do_nothing;
}
static void udp_delete_target(struct sender_client *sc, const char *msg)