aboutsummaryrefslogtreecommitdiff
path: root/src/urlglob.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-06 07:48:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-06 07:48:29 +0000
commit57c86a953dc28880e40d3450e635acdce9f2f50c (patch)
tree3c8ed0e6202f1fe2dacd058864e48bc1bf44729f /src/urlglob.c
parent0fff8656e9f0620c8ec61478ba42b6cabbecc755 (diff)
typecasts to please picky compilers checking the printf() format string
Diffstat (limited to 'src/urlglob.c')
-rw-r--r--src/urlglob.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/urlglob.c b/src/urlglob.c
index df0356fee..b7f56192c 100644
--- a/src/urlglob.c
+++ b/src/urlglob.c
@@ -77,13 +77,13 @@ static GlobCode glob_set(URLGlob *glob, char *pattern,
switch (*pattern) {
case '\0': /* URL ended while set was still open */
snprintf(glob->errormsg, sizeof(glob->errormsg),
- "unmatched brace at pos %d\n", pos);
+ "unmatched brace at pos %d\n", (int)pos);
return GLOB_ERROR;
case '{':
case '[': /* no nested expressions at this time */
snprintf(glob->errormsg, sizeof(glob->errormsg),
- "nested braces not supported at pos %d\n", pos);
+ "nested braces not supported at pos %d\n", (int)pos);
return GLOB_ERROR;
case ',':
@@ -119,13 +119,13 @@ static GlobCode glob_set(URLGlob *glob, char *pattern,
case ']': /* illegal closing bracket */
snprintf(glob->errormsg, sizeof(glob->errormsg),
- "illegal pattern at pos %d\n", pos);
+ "illegal pattern at pos %d\n", (int)pos);
return GLOB_ERROR;
case '\\': /* escaped character, skip '\' */
if (*(buf+1) == '\0') { /* but no escaping of '\0'! */
snprintf(glob->errormsg, sizeof(glob->errormsg),
- "illegal pattern at pos %d\n", pos);
+ "illegal pattern at pos %d\n", (int)pos);
return GLOB_ERROR;
}
++pattern;