From 48c6d0f56c022f39f08428ba88d811a3a64b7af5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 20 Mar 2016 03:02:56 -0500 Subject: [PATCH] ircd: squelch write(2) warning differently --- ircd/ircd.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ircd/ircd.c b/ircd/ircd.c index 376b4cc9..b94a7173 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -175,13 +175,7 @@ print_startup(int pid) * -- jilles */ if (!server_state_foreground) { - if(write(0, ".", 1) < 1) - /* The circumstances in which this could fail are pretty implausible. - * However, this shuts GCC up about warning the result of write is unused, - * and is "standards compliant" behaviour. - * --Elizabeth - */ - abort(); + (void) write(0, ".", 1); } if (dup2(1, 0) == -1) abort();