/[monit]/monit/protocols/protocol.c
ViewVC logotype

Diff of /monit/protocols/protocol.c

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

revision 1.6 by hauk, Mon Nov 25 17:00:38 2002 UTC revision 1.7 by martinp, Fri Jan 3 20:15:19 2003 UTC
# Line 37  static Protocol_T mypop= NULL; Line 37  static Protocol_T mypop= NULL;
37  static Protocol_T myimap= NULL;  static Protocol_T myimap= NULL;
38  static Protocol_T mynntp= NULL;  static Protocol_T mynntp= NULL;
39  static Protocol_T myssh= NULL;  static Protocol_T myssh= NULL;
40    static Protocol_T mydwp= NULL;
41    
42    
43  /**  /**
# Line 64  void gc_protocols() { Line 65  void gc_protocols() {
65    free(myimap);    myimap= NULL;    free(myimap);    myimap= NULL;
66    free(mynntp);    mynntp= NULL;    free(mynntp);    mynntp= NULL;
67    free(myssh);     myssh= NULL;    free(myssh);     myssh= NULL;
68      free(mydwp);     mydwp= NULL;
69    
70  }  }
71    
# Line 178  void *create_ssh() { Line 180  void *create_ssh() {
180    return myssh;    return myssh;
181    
182  }  }
183    
184    
185    void *create_dwp() {
186      
187      if(mydwp == NULL) {
188        static const char *name= "DWP";
189        mydwp= NEW(mydwp);
190        mydwp->name= name;
191        mydwp->check= check_dwp;
192      }
193      
194      return mydwp;
195    
196    }
197    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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