summaryrefslogtreecommitdiff
path: root/lib/wildmatch.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-07-07 07:22:08 +0000
committerWayne Davison <wayned@samba.org>2003-07-07 07:22:08 +0000
commit136c5c5ec3b3cc56d3952c3ce463f58615f00f8f (patch)
tree8ef18f7cbbcc8cf35d009f3d3f6499377256b8ba /lib/wildmatch.c
parent85b80fbc734944d98c2f84122903964ab7412d20 (diff)
downloadrsync-136c5c5ec3b3cc56d3952c3ce463f58615f00f8f.tar.gz
Silence some compiler warnings on HP-UX.
Diffstat (limited to 'lib/wildmatch.c')
-rw-r--r--lib/wildmatch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/wildmatch.c b/lib/wildmatch.c
index 6bf74c7e..e2dca205 100644
--- a/lib/wildmatch.c
+++ b/lib/wildmatch.c
@@ -22,7 +22,7 @@
#define CC_EQ(class, len, litmatch) ((len) == sizeof (litmatch)-1 \
&& *(class) == *(litmatch) \
- && strncmp(class, litmatch, len) == 0)
+ && strncmp((char*)class, litmatch, len) == 0)
#if defined STDC_HEADERS || !defined isascii
# define ISASCII(c) 1
@@ -94,7 +94,7 @@ static int domatch(const unsigned char *p, const unsigned char *text)
if (*p == '\0') {
/* Trailing "**" matches everything. Trailing "*" matches
* only if there are no more slash characters. */
- return special? TRUE : strchr(text, '/') == NULL;
+ return special? TRUE : strchr((char*)text, '/') == NULL;
}
for ( ; *text; text++) {
if ((matched = domatch(p, text)) != FALSE) {
@@ -141,7 +141,7 @@ static int domatch(const unsigned char *p, const unsigned char *text)
ch = 0; /* This makes "prev" get set to 0. */
}
else if (ch == '[' && p[1] == ':') {
- unsigned const char *s = p += 2;
+ const unsigned char *s = p += 2;
int i;
while ((ch = *p) && ch != ']') p++;
if (!ch)