summaryrefslogtreecommitdiff
path: root/src/urlglob.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-14 09:16:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-14 09:16:46 +0000
commit3a37c0ae23311230a85507d51023c120311bf6a7 (patch)
treebefc85a20302a15a78ffea4ad3caa08f620adcb9 /src/urlglob.c
parentccb3a13ce6ad5e5c3c5e0411ca57c8dd904f3d0d (diff)
downloadcurl-3a37c0ae23311230a85507d51023c120311bf6a7.tar.gz
(un)signed and const cleanup
Diffstat (limited to 'src/urlglob.c')
-rw-r--r--src/urlglob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/urlglob.c b/src/urlglob.c
index 69d33c958..c6b6dd731 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -395,7 +395,7 @@ char *match_url(char *filename, URLGlob *glob)
int stringlen=0;
char numbuf[18];
char *appendthis;
- size_t appendlen;
+ int appendlen;
/* We cannot use the glob_buffer for storage here since the filename may
* be longer than the URL we use. We allocate a good start size, then
@@ -424,7 +424,7 @@ char *match_url(char *filename, URLGlob *glob)
switch (pat.type) {
case UPTSet:
appendthis = pat.content.Set.elements[pat.content.Set.ptr_s];
- appendlen = strlen(pat.content.Set.elements[pat.content.Set.ptr_s]);
+ appendlen = (int)strlen(pat.content.Set.elements[pat.content.Set.ptr_s]);
break;
case UPTCharRange:
numbuf[0]=pat.content.CharRange.ptr_c;
@@ -435,7 +435,7 @@ char *match_url(char *filename, URLGlob *glob)
case UPTNumRange:
sprintf(numbuf, "%0*d", pat.content.NumRange.padlength, pat.content.NumRange.ptr_n);
appendthis = numbuf;
- appendlen = strlen(numbuf);
+ appendlen = (int)strlen(numbuf);
break;
default:
printf("internal error: invalid pattern type (%d)\n", pat.type);