summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-03-12 14:20:29 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-03-12 14:20:29 -0500
commit487eb95fc51bf3d25137f3cb105f6f41acdefebf (patch)
treeabf2da031074207ae0472f024170589203b334eb /src
parenta0857333d727a8bd53bd96ab24bb596125bcf04f (diff)
Add a cast to avoid warnings about toupper() on some platforms
Diffstat (limited to 'src')
-rw-r--r--src/c/fastcgi.c2
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")