diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-03-12 14:20:29 -0500 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-03-12 14:20:29 -0500 |
commit | 6814596c5fec2d103172093b9659b1cf369cdf3b (patch) | |
tree | abf2da031074207ae0472f024170589203b334eb | |
parent | 91d85e65b0c7ecd17e2fed6883499a74cf2f8821 (diff) |
Add a cast to avoid warnings about toupper() on some platforms
-rw-r--r-- | src/c/fastcgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/fastcgi.c b/src/c/fastcgi.c index 1498580b..ec1afb8e 100644 --- a/src/c/fastcgi.c +++ b/src/c/fastcgi.c @@ -221,7 +221,7 @@ static char *get_header(void *data, const char *h) { strcpy(hs->uppercased, "HTTP_"); for (s = hs->uppercased+5; *h; ++h) - *s++ = *h == '-' ? '_' : toupper(*h); + *s++ = *h == '-' ? '_' : toupper((int)*h); *s = 0; if (!strcasecmp(saved_h, "Content-length") |