From: Andre Noll Date: Thu, 22 Apr 2010 16:03:36 +0000 (+0200) Subject: Fix a gcc warning on ubuntu lucid lynx. X-Git-Tag: v0.4.2~5 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=77a1abaa8cd706c063701dac3f403526b673fe6f 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. --- 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); } }