From: Vincent Bernat Date: Fri, 22 Nov 2013 22:40:57 +0000 (+0100) Subject: coverity: don't fallback to next case for clarity X-Git-Tag: 0.7.8~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8ad3bafab61938d3af4f3fae3b676d5321e75d50;p=thirdparty%2Flldpd.git coverity: don't fallback to next case for clarity Even if the code was correct, add an `_exit(0)` to the first branch and do not rely on the next case for that. --- diff --git a/src/daemon/privsep_io.c b/src/daemon/privsep_io.c index 638e5458..ae31278c 100644 --- a/src/daemon/privsep_io.c +++ b/src/daemon/privsep_io.c @@ -192,8 +192,8 @@ must_read(void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; - case 0: _exit(0); + case 0: _exit(0); default: pos += res; } @@ -214,8 +214,8 @@ must_write(const void *buf, size_t n) case -1: if (errno == EINTR || errno == EAGAIN) continue; - case 0: _exit(0); + case 0: _exit(0); default: pos += res; }