summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-02-24 02:11:32 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-02-24 02:11:32 +0000
commitded88da1ea1fdcd6da017de2e1378578971f7645 (patch)
tree180098d673ee67f25e418d1126036afbe5ade799
parente68684aa65b579081163c175d681b7867a0828bf (diff)
downloadsamba-ded88da1ea1fdcd6da017de2e1378578971f7645.tar.gz
samba-ded88da1ea1fdcd6da017de2e1378578971f7645.tar.bz2
samba-ded88da1ea1fdcd6da017de2e1378578971f7645.zip
Add const
(This used to be commit ffaa608be01d72075942ca3aff2325c6364e0556)
-rw-r--r--source3/lib/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 13f5b17781..3958600cbd 100644
--- a/source3/lib/util.c
+++ b/source3/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;