Show
Ignore:
Timestamp:
08/30/07 00:53:49 (15 years ago)
Author:
andreu
Message:

ticket #11 and add generic conf in conf/rules.txt & tool/check.sh

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/REL-0.0.11beta/trunk/src/renetcol.c

    r41 r44  
    167167  } 
    168168  tmp = NULL; 
    169 /*   printRule(rulesListPtr); */ 
    170 /*   exit(1); */ 
     169#ifdef DEBUG 
     170  printRule(rulesListPtr); 
     171#endif 
     172 
    171173 
    172174  fprintf(stderr, "renetcol: I become a deamon, next messages via syslogd. By.\n"); 
     
    330332  setCache(myPtrs.rulesListPtr); 
    331333  sendReadRulesSignal(myQueue); 
     334#ifdef DEBUG 
     335  printRule(myPtrs.rulesListPtr); 
     336#endif 
    332337} 
    333338 
     
    356361  RuleDefPtr def = NULL; 
    357362 
     363#ifdef DEBUG 
     364  fprintf(stderr,"Cache for Rules\n"); 
     365#endif  
    358366  while (tmp) { 
    359367    def = tmp->def; 
     
    365373      rulesAddress[def->fieldType][i] = def; 
    366374      def = def->next; 
    367     } 
     375#ifdef DEBUG 
     376      fprintf(stderr,"%d: %d ", def->fieldType, i); 
     377#endif      
     378    } 
     379#ifdef DEBUG 
     380    fprintf(stderr,"\n"); 
     381#endif       
    368382    tmp = tmp->next; 
    369383  }