Permalink
Browse files

dead store

git-svn-id: http://monit.googlecode.com/svn/trunk@346 808b68a2-07de-11de-a1f0-819f45317607
  • Loading branch information...
1 parent 9fd13c1 commit 7e29dd70fda592f86d21daccd71ee6ee3893887d mmonit@tildeslash.com committed Mar 23, 2011
Showing with 2 additions and 4 deletions.
  1. +1 −3 process.c
  2. +1 −1 protocols/ntp3.c
View
@@ -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;
}
View
@@ -89,7 +89,7 @@ int check_ntp3(Socket_T s)
(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;
}

0 comments on commit 7e29dd7

Please sign in to comment.