[monit-dev] [monit] r344 committed - status is not used

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[monit-dev] [monit] r344 committed - status is not used

monit-2
Revision: 344
Author:   [hidden email]
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
[hidden email]
http://lists.nongnu.org/mailman/listinfo/monit-dev