summaryrefslogtreecommitdiffstats
path: root/src/daemon/cpulimit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-14 01:22:42 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-14 01:22:42 +0200
commit40d71e1f4914e021f321425a37825933b595a860 (patch)
tree054b5b02b94a8673f255eb3cc87f19f5f7392398 /src/daemon/cpulimit.c
parent845b312f4499eefe10a2be163ed8b5bc226b971d (diff)
explcitly ignore return values of some functions marked with gcc's warn_unused_result attribute
Diffstat (limited to 'src/daemon/cpulimit.c')
-rw-r--r--src/daemon/cpulimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/cpulimit.c b/src/daemon/cpulimit.c
index 64728e27..45d6a0fb 100644
--- a/src/daemon/cpulimit.c
+++ b/src/daemon/cpulimit.c
@@ -139,7 +139,7 @@ static void signal_handler(int sig) {
write_err("Soft CPU time limit exhausted, terminating.\n");
/* Try a soft cleanup */
- write(the_pipe[1], &c, sizeof(c));
+ (void) write(the_pipe[1], &c, sizeof(c));
phase = PHASE_SOFT;
reset_cpu_time(CPUTIME_INTERVAL_HARD);