From 79bb90caf12d2713b4736c3820135f0f00424f10 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sat, 17 Jan 2015 12:29:03 -0500 Subject: [PATCH] remove set but not used variable --- hlfsd/hlfsd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hlfsd/hlfsd.c b/hlfsd/hlfsd.c index 686bb63d..701abcdc 100644 --- a/hlfsd/hlfsd.c +++ b/hlfsd/hlfsd.c @@ -144,7 +144,6 @@ main(int argc, char *argv[]) int opterrs = 0; int retry; int soNFS; /* NFS socket */ - int s = -99; mntent_t mnt; nfs_args_t nfs_args; am_nfs_handle_t anh; @@ -449,17 +448,16 @@ main(int argc, char *argv[]) * set this signal handler. */ if (amuDebug(D_DAEMON)) { - s = -99; while (stoplight != SIGUSR2) { plog(XLOG_INFO, "parent waits for child to setup (stoplight=%d)", stoplight); #ifdef HAVE_SIGSUSPEND { sigset_t mask; sigemptyset(&mask); - s = sigsuspend(&mask); /* wait for child to set up */ + (void)sigsuspend(&mask); /* wait for child to set up */ } #else /* not HAVE_SIGSUSPEND */ - s = sigpause(0); /* wait for child to set up */ + (void)sigpause(0); /* wait for child to set up */ #endif /* not HAVE_SIGSUSPEND */ sleep(1); } -- 2.34.1