/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

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

revision 1.96 by martinp, Thu Sep 25 15:22:10 2003 UTC revision 1.97 by hauk, Tue Sep 30 16:03:13 2003 UTC
# Line 286  char *replace_string(char **src, const c Line 286  char *replace_string(char **src, const c
286      }      }
287            
288      strcat(buf, q);      strcat(buf, q);
289      free(*src);      FREE(*src);
290      *src= buf;      *src= buf;
291    }    }
292    
# Line 1031  int check_md5(char *file, char *sum) { Line 1031  int check_md5(char *file, char *sum) {
1031      int rv;      int rv;
1032            
1033      rv= (!strncmp(sum, newSum, 32));      rv= (!strncmp(sum, newSum, 32));
1034      free(newSum);      FREE(newSum);
1035            
1036      return (rv);      return (rv);
1037            
# Line 1096  char *get_basic_authentication_header() Line 1096  char *get_basic_authentication_header()
1096    
1097      auth= xcalloc(sizeof(char), STRLEN+1);      auth= xcalloc(sizeof(char), STRLEN+1);
1098      snprintf(auth, STRLEN, "Authorization: Basic %s\r\n", b64);      snprintf(auth, STRLEN, "Authorization: Basic %s\r\n", b64);
1099      free(b64);      FREE(b64);
1100    
1101      return auth;      return auth;
1102    

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

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