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

Diff of /monit/gc.c

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

revision 1.35 by chopp, Wed Oct 1 13:34:45 2003 UTC revision 1.36 by hauk, Thu Oct 2 02:17:36 2003 UTC
# Line 182  void gc_mail_list(Mail_T *m) { Line 182  void gc_mail_list(Mail_T *m) {
182        
183  }  }
184    
185        
186    void gc_mail_server(MailServer_T *s) {
187    
188      if(!s&&!*s) return;
189      
190      if((*s)->next) {
191        gc_mail_server(&(*s)->next);
192      }
193      
194      FREE((*s)->host);
195      FREE(*s);
196    
197    }
198    
199      
200  /* ----------------------------------------------------------------- Private */  /* ----------------------------------------------------------------- Private */
201    
202    
# Line 400  static void _gcpdl(Dependant_T *d) { Line 414  static void _gcpdl(Dependant_T *d) {
414    
415  }  }
416    
417    
418  static void _gcgrc(Generic_T *g) {  static void _gcgrc(Generic_T *g) {
419    
420      ASSERT(g);
421    
422    if((*g)->next) {    if((*g)->next) {
423      _gcgrc(&(*g)->next);      _gcgrc(&(*g)->next);
424    }    }
# Line 417  static void _gcgrc(Generic_T *g) { Line 434  static void _gcgrc(Generic_T *g) {
434            
435  }  }
436    
437    
438  static void _gcath(Auth_T *c) {  static void _gcath(Auth_T *c) {
439    
440      ASSERT(c);
441    
442    if((*c)->next) {    if((*c)->next) {
443      _gcath(&(*c)->next);      _gcath(&(*c)->next);
444    }    }

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

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