Changeset e19eb97 for regex.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
  • regex.c

    r41c9a96 re19eb97  
    88}
    99
    10 int owl_regex_create(owl_regex *re, char *string)
     10int owl_regex_create(owl_regex *re, const char *string)
    1111{
    1212  int ret;
    1313  char buff1[LINE];
    14   char *ptr;
     14  const char *ptr;
    1515 
    1616  re->string=owl_strdup(string);
     
    3636}
    3737
    38 int owl_regex_create_quoted(owl_regex *re, char *string)
     38int owl_regex_create_quoted(owl_regex *re, const char *string)
    3939{
    4040  char *quoted;
     
    4646}
    4747
    48 int owl_regex_compare(owl_regex *re, char *string, int *start, int *end)
     48int owl_regex_compare(owl_regex *re, const char *string, int *start, int *end)
    4949{
    5050  int out, ret;
     
    7474}
    7575
    76 char *owl_regex_get_string(owl_regex *re)
     76const char *owl_regex_get_string(owl_regex *re)
    7777{
    7878  return(re->string);
Note: See TracChangeset for help on using the changeset viewer.