changeset 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 44f78d6fec29
children 3d5e4c5fb6ee
files src/c/fastcgi.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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")