summaryrefslogtreecommitdiffstats
path: root/configd
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-01-28 11:38:22 +0100
committerTor Egge <Tor.Egge@broadpark.no>2019-01-28 11:38:22 +0100
commite1b66566738d4d300bda88d467675f311b4afdcf (patch)
tree59d8b0f567e523e222fb5ce5cf408a5dc3770bd4 /configd
parent7ab7ef084c10547ad1e3456144d769c53849d7e0 (diff)
Some return values are ignored in configd.
Diffstat (limited to 'configd')
-rw-r--r--configd/src/apps/sentinel/service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/configd/src/apps/sentinel/service.cpp b/configd/src/apps/sentinel/service.cpp
index e70304efcb5..ebf96d2ed53 100644
--- a/configd/src/apps/sentinel/service.cpp
+++ b/configd/src/apps/sentinel/service.cpp
@@ -375,7 +375,7 @@ Service::runChild(int pipes[2])
char buf[200];
snprintf(buf, sizeof buf, "open /dev/null for fd 0: got %d "
"(%s)", fd, strerror(errno));
- (void) write(pipes[1], buf, strlen(buf));
+ [[maybe_unused]] auto writeRes = write(pipes[1], buf, strlen(buf));
_exit(EXIT_FAILURE);
}
fcntl(0, F_SETFD, 0); // Don't close on exec
@@ -385,7 +385,7 @@ Service::runChild(int pipes[2])
char buf[200];
snprintf(buf, sizeof buf, "exec error: %s for /bin/sh -c '%s'",
strerror(errno), _config->command.c_str());
- (void) write(pipes[1], buf, strlen(buf));
+ [[maybe_unused]] auto writeRes = write(pipes[1], buf, strlen(buf));
_exit(EXIT_FAILURE);
}