From ddc15c77901db2996b1d00eff81ae49807a5fdf2 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 30 Jan 2008 09:50:26 +0000 Subject: [PATCH] Check various return values (or not) to reduce Flexelint noise. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2402 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/varnishd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/varnish-cache/bin/varnishd/varnishd.c b/varnish-cache/bin/varnishd/varnishd.c index 36e63c2d..2d6e2c77 100644 --- a/varnish-cache/bin/varnishd/varnishd.c +++ b/varnish-cache/bin/varnishd/varnishd.c @@ -231,7 +231,7 @@ static void DebugSigPass(int sig) { - kill(d_child, sig); + (void)kill(d_child, sig); } static void @@ -280,8 +280,8 @@ DebugStunt(void) pfd[1].fd = pipes[1][0]; pfd[1].events = POLLIN; - signal(SIGPIPE, SIG_IGN); - signal(SIGINT, DebugSigPass); + (void)signal(SIGPIPE, SIG_IGN); + (void)signal(SIGINT, DebugSigPass); i = read(pipes[1][0], buf, sizeof buf - 1); xxxassert(i >= 0); buf[i] = '\0'; @@ -376,7 +376,7 @@ main(int argc, char *argv[]) setbuf(stdout, NULL); setbuf(stderr, NULL); - setenv("TZ", "GMT", 1); + AZ(setenv("TZ", "GMT", 1)); tzset(); memset(cli, 0, sizeof cli); @@ -547,18 +547,18 @@ main(int argc, char *argv[]) if (d_flag == 1) DebugStunt(); if (d_flag < 2 && !F_flag) - daemon(1, d_flag); + AZ(daemon(1, d_flag)); if (d_flag == 1) printf("%d\n", getpid()); if (pfh != NULL) - vpf_write(pfh); + vpf_write(pfh); /* XXX: Warn or Err if fail ? */ mgt_cli_init(); mgt_run(d_flag, T_arg); if (pfh != NULL) - vpf_remove(pfh); + (void)vpf_remove(pfh); exit(0); } -- 2.39.5