diff src/c/fastcgi.c @ 1435:740e167cd4eb

Add a cast to avoid warnings about toupper() on some platforms
author Adam Chlipala <adam@chlipala.net>
date Sat, 12 Mar 2011 14:20:29 -0500
parents 38d950c06dce
children 36f7d1debb37
line wrap: on
line diff
--- a/src/c/fastcgi.c	Fri Mar 11 18:36:24 2011 -0500
+++ b/src/c/fastcgi.c	Sat Mar 12 14:20:29 2011 -0500
@@ -221,7 +221,7 @@
 
   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")