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

Diff of /monit/util.c

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

revision 1.72 by hauk, Thu Jul 24 00:50:18 2003 UTC revision 1.73 by hauk, Thu Jul 31 00:32:52 2003 UTC
# Line 56  Line 56 
56  #include "alert.h"  #include "alert.h"
57  #include "monit_process.h"  #include "monit_process.h"
58    
59    
60  /* Private prototypes */  /* Private prototypes */
 static int is_unsafe(unsigned char *c);  
61  static char *is_str_defined(char *);  static char *is_str_defined(char *);
62    static int is_unsafe(unsigned char *c);
63  static char *is_str_defined_default(char *);  static char *is_str_defined_default(char *);
64    
65    
66  /**  /**
67   *  General purpose utility methods.   *  General purpose utility methods.
68   *   *
# Line 570  void printservice(Service_T s) { Line 572  void printservice(Service_T s) {
572        
573    for(t= s->timestamplist; t; t= t->next) {    for(t= s->timestamplist; t; t= t->next) {
574            
575      printf(" %-20s = if %s %s %d second(s) then %s\n",      if(t->test_changes) {
576             "Timestamp",        printf(" %-20s = if %s was changed then %s\n",
577             t->pathname,               "Timestamp",
578             operatornames[t->operator],               t->pathname,
579             t->time,               actionnames[t->action]);
580             actionnames[t->action]);      } else {
581          printf(" %-20s = if %s %s %d second(s) then %s\n",
582                 "Timestamp",
583                 t->pathname,
584                 operatornames[t->operator],
585                 t->time,
586                 actionnames[t->action]);
587        }
588            
589    }    }
590    

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

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