diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 02:11:32 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-02-24 02:11:32 +0000 |
commit | ffaa608be01d72075942ca3aff2325c6364e0556 (patch) | |
tree | efed01636c06c2c2013561ecc4e441f45f4a0926 /source/lib | |
parent | e908fd164d1b11b6f76a6fdffb22e139813cb3c0 (diff) | |
download | samba-ffaa608be01d72075942ca3aff2325c6364e0556.tar.gz samba-ffaa608be01d72075942ca3aff2325c6364e0556.tar.xz samba-ffaa608be01d72075942ca3aff2325c6364e0556.zip |
Add const
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 13f5b177817..3958600cbde 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -309,9 +309,9 @@ BOOL in_group(gid_t group, gid_t current_gid, int ngroups, const gid_t *groups) Like atoi but gets the value up to the separator character. ****************************************************************************/ -static char *Atoic(char *p, int *n, char *c) +static const char *Atoic(const char *p, int *n, const char *c) { - if (!isdigit((int)*p)) { + if (!isdigit((const int)*p)) { DEBUG(5, ("Atoic: malformed number\n")); return NULL; } @@ -333,7 +333,7 @@ static char *Atoic(char *p, int *n, char *c) Reads a list of numbers. *************************************************************************/ -char *get_numlist(char *p, uint32 **num, int *count) +const char *get_numlist(const char *p, uint32 **num, int *count) { int val; @@ -2400,7 +2400,7 @@ static BOOL unix_do_match(char *regexp, char *str) Simple case insensitive interface to a UNIX wildcard matcher. *******************************************************************/ -BOOL unix_wild_match(char *pattern, char *string) +BOOL unix_wild_match(const char *pattern, const char *string) { pstring p2, s2; char *p; |