# HG changeset patch # User Adam Chlipala # Date 1299957629 18000 # Node ID 740e167cd4eb22734d4003d32788322ea5331145 # Parent 44f78d6fec29bba196b015701718823c81732633 Add a cast to avoid warnings about toupper() on some platforms diff -r 44f78d6fec29 -r 740e167cd4eb src/c/fastcgi.c --- 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")