monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: monit
Subject: [monit-dev] [monit] r346 committed - dead store
Date: Wed, 23 Mar 2011 21:26:56 +0000

Revision: 346
Author:   address@hidden
Date:     Wed Mar 23 14:25:58 2011
Log:      dead store
http://code.google.com/p/monit/source/detail?r=346

Modified:
 /trunk/process.c
 /trunk/protocols/ntp3.c

=======================================
--- /trunk/process.c    Mon Mar 21 08:32:15 2011
+++ /trunk/process.c    Wed Mar 23 14:25:58 2011
@@ -81,11 +81,9 @@
  * @return TRUE if succeeded otherwise FALSE.
  */
 int init_process_info(void) {
-  int rv;
-
   memset(&systeminfo, 0, sizeof(SystemInfo_T));
   gettimeofday(&systeminfo.collected, NULL);
-  if((rv = uname(&systeminfo.uname)) < 0) {
+  if(uname(&systeminfo.uname) < 0) {
LogError("'%s' resource monitoring initialization error -- uname failed: %s\n", Run.system->name, STRERROR);
     return FALSE;
   }
=======================================
--- /trunk/protocols/ntp3.c     Wed Jan 19 10:40:32 2011
+++ /trunk/protocols/ntp3.c     Wed Mar 23 14:25:58 2011
@@ -89,7 +89,7 @@
     (NTP_MODE_CLIENT);

   /* Send request to NTP server */
-  if( (br= socket_write(s, ntpRequest, NTPLEN)) <= 0 ) {
+  if(socket_write(s, ntpRequest, NTPLEN) <= 0 ) {
     LogError("NTP: error sending NTP request -- %s\n", STRERROR);
     return FALSE;
   }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]