Revision: 344
Author:   mmo...@tildeslash.com
Date:     Wed Mar 23 14:17:00 2011
Log:      status is not used
http://code.google.com/p/monit/source/detail?r=344

Modified:
 /trunk/monitor.c

=======================================
--- /trunk/monitor.c    Mon Mar 21 08:32:15 2011
+++ /trunk/monitor.c    Wed Mar 23 14:17:00 2011
@@ -735,7 +735,6 @@
  * M/Monit heartbeat thread
  */
 static void *heartbeat(void *args) {
-  int status;
   sigset_t ns;
   struct timespec wait;

@@ -744,7 +743,7 @@
   LOCK(heartbeatMutex)
   {
     while (! Run.stopped && ! Run.doreload) {
-      if ((status = handle_mmonit(NULL)) == HANDLER_SUCCEEDED)
+      if (handle_mmonit(NULL) == HANDLER_SUCCEEDED)
         wait.tv_sec = time(NULL) + Run.polltime;
       else
         wait.tv_sec = time(NULL) + 1;

_______________________________________________
monit-dev mailing list
monit-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monit-dev

Reply via email to