Revision: 346
Author: mmo...@tildeslash.com
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;
}
_______________________________________________
monit-dev mailing list
monit-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/monit-dev