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

Diff of /monit/util.c

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

revision 1.89 by martinp, Mon Sep 15 19:49:57 2003 UTC revision 1.90 by hauk, Fri Sep 19 03:44:17 2003 UTC
# Line 883  char *get_RFC822date(long *date) { Line 883  char *get_RFC822date(long *date) {
883    
884    tm_now= localtime(&now);    tm_now= localtime(&now);
885    
886    if(!strftime(D, STRLEN, "%a, %d %b %Y %H:%M:%S %z", tm_now)) {    if(strftime(D, STRLEN, "%a, %d %b %Y %H:%M:%S %z", tm_now) <= 0) {
887    
888      return NULL;      return NULL;
889    
# Line 1097  char *get_basic_authentication_header() Line 1097  char *get_basic_authentication_header()
1097   * Do printf style format line parsing   * Do printf style format line parsing
1098   * @param s format string   * @param s format string
1099   * @param ap variable argument list   * @param ap variable argument list
1100     * @param len The lenght of the bytes written,
1101     * may be different from the returned allocated buffer size
1102   * @return buffer with parsed string   * @return buffer with parsed string
1103   */   */
1104  char *format(const char *s, va_list ap) {  char *format(const char *s, va_list ap, long *len) {
1105    
1106    int n;    int n;
1107    int size= STRLEN;    int size= STRLEN;
# Line 1122  char *format(const char *s, va_list ap) Line 1124  char *format(const char *s, va_list ap)
1124      buf= xresize(buf, size);      buf= xresize(buf, size);
1125            
1126    }    }
1127    
1128      *len= n;
1129        
1130    return buf;    return buf;
1131    

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90

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