From 77a1abaa8cd706c063701dac3f403526b673fe6f Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 22 Apr 2010 18:03:36 +0200 Subject: [PATCH] Fix a gcc warning on ubuntu lucid lynx. Apparently the Ubuntu guys know better than the programmer which system calls require argument checking. Sad, sad, sad. --- udp_send.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udp_send.c b/udp_send.c index fc3bb2f5..e80670d0 100644 --- a/udp_send.c +++ b/udp_send.c @@ -192,11 +192,13 @@ static void udp_shutdown_targets(void) 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); - write(ut->fd, buf, len); + /* ignore return value, we're closing the target anyway. */ + ubuntu_glibc_headers_suck = write(ut->fd, buf, len); /* STFU */ udp_close_target(ut); } } -- 2.39.5