Changeset e19eb97 for filter.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 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:
1077891a
Parents:
fa4562c
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Add const qualifiers for char * and void *.

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

Legend:

Unmodified
Added
Removed
  • filter.c

    rc529ac8 re19eb97  
    22#include "owl.h"
    33
    4 int owl_filter_init_fromstring(owl_filter *f, char *name, char *string)
     4int owl_filter_init_fromstring(owl_filter *f, const char *name, const char *string)
    55{
    66  char **argv;
     
    1313}
    1414
    15 int owl_filter_init(owl_filter *f, char *name, int argc, char **argv)
     15int owl_filter_init(owl_filter *f, const char *name, int argc, const char *const *argv)
    1616{
    1717  f->name=owl_strdup(name);
     
    5656/* A primitive expression is one without any toplevel ``and'' or ``or''s*/
    5757
    58 static owl_filterelement * owl_filter_parse_primitive_expression(int argc, char **argv, int *next)
     58static owl_filterelement * owl_filter_parse_primitive_expression(int argc, const char *const *argv, int *next)
    5959{
    6060  owl_filterelement *fe, *op;
     
    112112}
    113113
    114 owl_filterelement * owl_filter_parse_expression(int argc, char **argv, int *next)
     114owl_filterelement * owl_filter_parse_expression(int argc, const char *const *argv, int *next)
    115115{
    116116  int i = 0, skip;
     
    151151}
    152152
    153 char *owl_filter_get_name(owl_filter *f)
     153const char *owl_filter_get_name(owl_filter *f)
    154154{
    155155  return(f->name);
     
    270270#ifdef OWL_INCLUDE_REG_TESTS
    271271
    272 int owl_filter_test_string(char * filt, owl_message *m, int shouldmatch) /* noproto */ {
     272int owl_filter_test_string(const char * filt, owl_message *m, int shouldmatch) /* noproto */ {
    273273  owl_filter f;
    274274  int ok;
Note: See TracChangeset for help on using the changeset viewer.