/[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.14 by hauk, Fri Aug 29 19:49:37 2003 UTC revision 1.15 by chopp, Mon Sep 29 15:53:25 2003 UTC
# Line 47  static Protocol_T myldap2= NULL; Line 47  static Protocol_T myldap2= NULL;
47  static Protocol_T myldap3= NULL;  static Protocol_T myldap3= NULL;
48  static Protocol_T myrdate= NULL;  static Protocol_T myrdate= NULL;
49  static Protocol_T myrsync= NULL;  static Protocol_T myrsync= NULL;
50    static Protocol_T mygeneric= NULL;
51    
52    
53  /**  /**
# Line 79  void gc_protocols() { Line 80  void gc_protocols() {
80    free(myldap3);   myldap3= NULL;    free(myldap3);   myldap3= NULL;
81    free(myrdate);   myrdate= NULL;    free(myrdate);   myrdate= NULL;
82    free(myrsync);   myrsync= NULL;    free(myrsync);   myrsync= NULL;
83      free(mygeneric); mygeneric= NULL;
84    
85  }  }
86    
# Line 248  void *create_rsync() { Line 250  void *create_rsync() {
250    }    }
251        
252    return myrsync;    return myrsync;
253      
254    }
255    
256    void *create_generic() {
257      
258      if(myrsync == NULL) {
259        NEW(myrsync);
260        myrsync->name= "generic";
261        myrsync->check= check_generic;
262      }
263      
264      return myrsync;
265        
266  }  }
267    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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