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

Diff of /monit/util.c

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

revision 1.47 by martinp, Sun Dec 1 17:27:43 2002 UTC revision 1.48 by hauk, Tue Dec 17 19:55:17 2002 UTC
# Line 99  void error(const char *format, ...) { Line 99  void error(const char *format, ...) {
99      fprintf(stderr,"%s", msg);      fprintf(stderr,"%s", msg);
100      fflush(stderr);      fflush(stderr);
101            
102    }    } else {
   else {  
103            
104      log("%s", msg);      log("%s", msg);
105            
# Line 114  void error(const char *format, ...) { Line 113  void error(const char *format, ...) {
113   */   */
114  int is_strdefined(char *p) {  int is_strdefined(char *p) {
115        
116    return(p && p[0] != '\0' && strlen(p) > 0);    return(p && *p);
117        
118  }  }
119    

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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