Changeset 036ea660b7b7a616cc290584da8b46a20360b5f7

Show
Ignore:
Timestamp:
07/12/10 16:14:18 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1278951258 +0000
git-parent:

[ea766cfca8daf3326b219587338a3b25b87de8e4]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1278951258 +0000
Message:

this should allow showing arbitrary length filters over the console.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_filters.c

    rf8f8b5e r036ea66  
    288288    nc_printf(ncct, "Rule %d [%s]:\n", i+1, val); 
    289289#define DUMP_ATTR(a) do { \ 
    290   if(noit_conf_get_stringbuf(rules[i], "@" #a, val, sizeof(val))) { \ 
     290  char *vstr; \ 
     291  if(noit_conf_get_string(rules[i], "@" #a, &vstr)) { \ 
    291292    nc_printf(ncct, "\t%s: /%s/\n", #a, val); \ 
     293    free(vstr); \ 
    292294  } \ 
    293295} while(0)