/[monit]/monit/p.y
ViewVC logotype

Diff of /monit/p.y

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.103 by martinp, Wed Aug 6 19:19:06 2003 UTC revision 1.104 by martinp, Wed Aug 6 20:40:01 2003 UTC
# Line 1039  static void addchecksum(char *sum) { Line 1039  static void addchecksum(char *sum) {
1039    
1040    if(sum) {    if(sum) {
1041    
1042      current->md5= xstrdup(sum);      current->md5= sum;
1043    
1044    } else if( !(current->md5= get_md5sum(current->path)) ) {    } else if( !(current->md5= get_md5sum(current->path)) ) {
1045    
1046      log("%s: Cannot compute a checksum for %s at line %d\n",      log("%s: Cannot compute a checksum for %s at line %d\n",
1047          prog, current->path, lineno-1);          prog, current->path, lineno-1);
1048      cfg_errflag++;      cfg_errflag++;
# Line 1607  static void setpasswd(char *passwd) { Line 1607  static void setpasswd(char *passwd) {
1607    ASSERT(passwd);    ASSERT(passwd);
1608    
1609    if(Run.Auth.passwd) {    if(Run.Auth.passwd) {
1610        
1611      if(IS(Run.Auth.passwd, passwd)) {      if(IS(Run.Auth.passwd, passwd)) {
1612          
1613          free(passwd);
1614        return;        return;
1615          
1616      } else {      } else {
1617          
1618        free(Run.Auth.passwd);        free(Run.Auth.passwd);
1619          
1620      }      }
1621    }    }
1622      
1623    Run.Auth.passwd= passwd;    Run.Auth.passwd= passwd;
1624    
1625  }  }

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26