From 57c86a953dc28880e40d3450e635acdce9f2f50c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Apr 2004 07:48:29 +0000 Subject: typecasts to please picky compilers checking the printf() format string --- src/urlglob.c | 8 ++++---- 1 file 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; -- cgit v1.2.3