Changeset 481 for trunk/src/sh_log_evalrule.c
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_evalrule.c
r383 r481 470 470 } 471 471 472 st atic struct sh_qeval ** dummy_queue;473 static char ** dummy_dstr;472 struct sh_qeval ** sh_dummy_472_queue; 473 char ** sh_dummy_473_dstr; 474 474 475 475 int sh_eval_radd (const char * str) … … 477 477 struct sh_geval * nr; 478 478 struct sh_geval * tmp; 479 struct sh_qeval * queue = NULL;479 struct sh_qeval * queue; 480 480 pcre * rule; 481 481 pcre_extra * rule_extra; … … 506 506 splits = split_array(new, &nfields, ':', lengths); 507 507 508 dummy_queue = &queue; 509 dummy_dstr = &dstr; 508 sh_dummy_472_queue = &queue; 509 sh_dummy_473_dstr = &dstr; 510 511 queue = NULL; 510 512 511 513 if (nfields < 2 || nfields > 3) … … 593 595 pcre_fullinfo(rule, rule_extra, PCRE_INFO_CAPTURECOUNT, &captures); 594 596 595 if (flag_err_debug == S L_TRUE)597 if (flag_err_debug == S_TRUE) 596 598 { 597 599 char * emsg = SH_ALLOC(SH_ERRBUF_SIZE); … … 654 656 if (group_open) 655 657 { 656 if (flag_err_debug == S L_TRUE)658 if (flag_err_debug == S_TRUE) 657 659 { 658 660 char * emsg = SH_ALLOC(SH_ERRBUF_SIZE); … … 826 828 * filled in 827 829 */ 828 st atic struct sh_geval ** dummy1;830 struct sh_geval ** sh_dummy_828_rule; 829 831 830 832 static struct sh_geval * test_rule (struct sh_geval * rule, sh_string *msg, time_t tstamp) … … 834 836 volatile time_t timestamp = tstamp; 835 837 836 dummy1= &rule;838 sh_dummy_828_rule = &rule; 837 839 838 840 if (!rule) … … 844 846 do { 845 847 846 if (flag_err_debug == S L_TRUE)848 if (flag_err_debug == S_TRUE) 847 849 { 848 850 char * emsg = SH_ALLOC(SH_ERRBUF_SIZE); … … 864 866 rule->ovecnum = res; 865 867 866 if (flag_err_debug == S L_TRUE)868 if (flag_err_debug == S_TRUE) 867 869 { 868 870 char * emsg = SH_ALLOC(SH_ERRBUF_SIZE); … … 900 902 } 901 903 902 if (flag_err_debug == S L_TRUE)904 if (flag_err_debug == S_TRUE) 903 905 { 904 906 char * emsg = SH_ALLOC(SH_ERRBUF_SIZE); … … 919 921 DEBUG("debug: no match found\n"); 920 922 /* If there was no match, this is NULL */ 921 dummy1= NULL;923 sh_dummy_828_rule = NULL; 922 924 return rule; 923 925 } … … 926 928 * against msg 927 929 */ 928 st atic struct sh_geval ** dummy2;929 st atic struct sh_geval ** dummy3;930 struct sh_geval ** sh_dummy_928_result; 931 struct sh_geval ** sh_dummy_929_group; 930 932 931 933 static struct sh_geval * test_grules (struct sh_heval * host, … … 936 938 struct sh_geval * group = host->rulegroups; 937 939 938 dummy2= &result;939 dummy3= &group;940 sh_dummy_928_result = &result; 941 sh_dummy_929_group = &group; 940 942 941 943 if (group && sh_string_len(msg) < (size_t)INT_MAX) … … 947 949 /* this is a rule group */ 948 950 949 if (flag_err_debug == S L_TRUE)951 if (flag_err_debug == S_TRUE) 950 952 { 951 953 char * emsg = SH_ALLOC(SH_ERRBUF_SIZE); … … 975 977 */ 976 978 977 if (flag_err_debug == S L_TRUE)979 if (flag_err_debug == S_TRUE) 978 980 { 979 981 char * emsg = SH_ALLOC(SH_ERRBUF_SIZE); … … 995 997 } 996 998 997 dummy2= NULL;998 dummy3= NULL;999 sh_dummy_928_result = NULL; 1000 sh_dummy_929_group = NULL; 999 1001 return result; 1000 1002 } … … 1113 1115 static zAVLKey sh_eval_getkey(void const *item) 1114 1116 { 1115 return (( struct sh_ceval *)item)->hostname->str;1117 return ((const struct sh_ceval *)item)->hostname->str; 1116 1118 } 1117 1119
Note:
See TracChangeset
for help on using the changeset viewer.