[monit-dev] [monit] r349 committed - dead store

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

[monit-dev] [monit] r349 committed - dead store

monit-2
Revision: 349
Author:   [hidden email]
Date:     Wed Mar 23 14:34:11 2011
Log:      dead store
http://code.google.com/p/monit/source/detail?r=349

Modified:
  /trunk/event.c
  /trunk/util.c

=======================================
--- /trunk/event.c Wed Mar 23 14:22:06 2011
+++ /trunk/event.c Wed Mar 23 14:34:11 2011
@@ -407,7 +407,7 @@
   * @return An action id
   */
  short Event_get_action(Event_T E) {
-  Action_T A = E->action->failed;
+  Action_T A = NULL;

    ASSERT(E);

=======================================
--- /trunk/util.c Wed Mar 23 14:22:06 2011
+++ /trunk/util.c Wed Mar 23 14:34:11 2011
@@ -574,7 +574,7 @@
    }

    if(Run.mailservers) {
-    MailServer_T mta= Run.mailservers;
+    MailServer_T mta;
      printf(" %-18s = ", "Mail server(s)");
      for(mta= Run.mailservers; mta; mta= mta->next)
  printf("%s:%d%s%s",
@@ -1050,12 +1050,11 @@
  void Util_printHash(char *filename) {
    unsigned char buf[STRLEN], buf2[STRLEN];
    FILE *fhandle = NULL;
-  int fresult;
    int i;

    if (! (fhandle = filename ? fopen(filename, "r") : stdin))
      goto fileerror;
-  if ((fresult = Util_getStreamDigests(fhandle, buf, buf2)))
+  if (Util_getStreamDigests(fhandle, buf, buf2))
      goto fileerror;
    if (filename && fclose(fhandle))
      goto fileerror;

_______________________________________________
monit-dev mailing list
[hidden email]
http://lists.nongnu.org/mailman/listinfo/monit-dev