aboutsummaryrefslogtreecommitdiffstats
path: root/src/event_pipe.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-01 17:14:25 +0200
committerMax Kellermann <max@duempel.org>2009-04-01 17:14:25 +0200
commit8ce2ec7aedf995a37953711e0866a9beef0ae243 (patch)
treed7a85c4bcadb0ee2782aba53978ec929c5c17bb3 /src/event_pipe.c
parenta96bec36557e849f6a807ea2d66f4878298bac6d (diff)
downloadmpd-8ce2ec7aedf995a37953711e0866a9beef0ae243.tar.gz
mpd-8ce2ec7aedf995a37953711e0866a9beef0ae243.tar.xz
mpd-8ce2ec7aedf995a37953711e0866a9beef0ae243.zip
client, event_pipe: explicitly ignore the write() result
On both locations, the result of write() can be ignored safely. In event_pipe_emit_fast(), that can only be "EAGAIN", which means that the pipe buffer is full - no further notification required. In client_init(), that would be a fatal connection error, which would be caught by the next event. This patch fixes gcc warnings.
Diffstat (limited to '')
-rw-r--r--src/event_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event_pipe.c b/src/event_pipe.c
index 6eddd0b1b..3e5009150 100644
--- a/src/event_pipe.c
+++ b/src/event_pipe.c
@@ -149,5 +149,5 @@ void event_pipe_emit_fast(enum pipe_event event)
assert((unsigned)event < PIPE_EVENT_MAX);
pipe_events[event] = true;
- write(event_pipe[1], "", 1);
+ (void)write(event_pipe[1], "", 1);
}