Changeset c08c70a for filterelement.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:19 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1fdab04
Parents:
25fb825
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 00:44:38)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:19)
Message:
Add const qualifiers for owl_message *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filterelement.c

    re19eb97 rc08c70a  
    11#include "owl.h"
    22
    3 static const char * owl_filterelement_get_field(owl_message *m, const char * field)
     3static const char * owl_filterelement_get_field(const owl_message *m, const char * field)
    44{
    55  const char *match;
     
    4848}
    4949
    50 static int owl_filterelement_match_false(owl_filterelement *fe, owl_message *m)
     50static int owl_filterelement_match_false(owl_filterelement *fe, const owl_message *m)
    5151{
    5252  return 0;
    5353}
    5454
    55 static int owl_filterelement_match_true(owl_filterelement *fe, owl_message *m)
     55static int owl_filterelement_match_true(owl_filterelement *fe, const owl_message *m)
    5656{
    5757  return 1;
    5858}
    5959
    60 static int owl_filterelement_match_re(owl_filterelement *fe, owl_message *m)
     60static int owl_filterelement_match_re(owl_filterelement *fe, const owl_message *m)
    6161{
    6262  const char * val = owl_filterelement_get_field(m, fe->field);
     
    6464}
    6565
    66 static int owl_filterelement_match_filter(owl_filterelement *fe, owl_message *m)
     66static int owl_filterelement_match_filter(owl_filterelement *fe, const owl_message *m)
    6767{
    6868  owl_filter *subfilter;
     
    7777}
    7878
    79 static int owl_filterelement_match_perl(owl_filterelement *fe, owl_message *m)
     79static int owl_filterelement_match_perl(owl_filterelement *fe, const owl_message *m)
    8080{
    8181  const char *subname;
     
    9797}
    9898
    99 static int owl_filterelement_match_group(owl_filterelement *fe, owl_message *m)
     99static int owl_filterelement_match_group(owl_filterelement *fe, const owl_message *m)
    100100{
    101101  return owl_filterelement_match(fe->left, m);
     
    106106*/
    107107
    108 static int owl_filterelement_match_and(owl_filterelement *fe, owl_message *m)
     108static int owl_filterelement_match_and(owl_filterelement *fe, const owl_message *m)
    109109{
    110110  return owl_filterelement_match(fe->left, m) &&
     
    112112}
    113113
    114 static int owl_filterelement_match_or(owl_filterelement *fe, owl_message *m)
     114static int owl_filterelement_match_or(owl_filterelement *fe, const owl_message *m)
    115115{
    116116  return owl_filterelement_match(fe->left, m) ||
     
    118118}
    119119
    120 static int owl_filterelement_match_not(owl_filterelement *fe, owl_message *m)
     120static int owl_filterelement_match_not(owl_filterelement *fe, const owl_message *m)
    121121{
    122122  return !owl_filterelement_match(fe->left, m);
     
    276276}
    277277
    278 int owl_filterelement_match(owl_filterelement *fe, owl_message *m)
     278int owl_filterelement_match(owl_filterelement *fe, const owl_message *m)
    279279{
    280280  if(!fe) return 0;
Note: See TracChangeset for help on using the changeset viewer.