remove set but not used variable
authorChristos Zoulas <christos@zoulas.com>
Sat, 17 Jan 2015 17:29:03 +0000 (12:29 -0500)
committerChristos Zoulas <christos@zoulas.com>
Sat, 17 Jan 2015 17:29:03 +0000 (12:29 -0500)
hlfsd/hlfsd.c

index 686bb63db23944b751ebfd336436602bfe8b1ef1..701abcdca515455fbf266bb51b6ded5312e54d01 100644 (file)
@@ -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);
     }