comparison 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
comparison
equal deleted inserted replaced
1434:44f78d6fec29 1435:740e167cd4eb
219 hs->uppercased = realloc(hs->uppercased, len + 6); 219 hs->uppercased = realloc(hs->uppercased, len + 6);
220 } 220 }
221 221
222 strcpy(hs->uppercased, "HTTP_"); 222 strcpy(hs->uppercased, "HTTP_");
223 for (s = hs->uppercased+5; *h; ++h) 223 for (s = hs->uppercased+5; *h; ++h)
224 *s++ = *h == '-' ? '_' : toupper(*h); 224 *s++ = *h == '-' ? '_' : toupper((int)*h);
225 *s = 0; 225 *s = 0;
226 226
227 if (!strcasecmp(saved_h, "Content-length") 227 if (!strcasecmp(saved_h, "Content-length")
228 || !strcasecmp(saved_h, "Content-type")) { 228 || !strcasecmp(saved_h, "Content-type")) {
229 if ((s = search_nvps(hs->nvps, hs->uppercased + 5))) 229 if ((s = search_nvps(hs->nvps, hs->uppercased + 5)))