comparison src/c/cgi.c @ 1134:b08b73591d2c

Switch to gcc -Wall
author Adam Chlipala <adamc@hcoop.net>
date Thu, 28 Jan 2010 13:32:26 -0500
parents 0cee0c8d8c37
children b0d632cc9edf
comparison
equal deleted inserted replaced
1133:482815817e99 1134:b08b73591d2c
26 strcpy(uppercased, "HTTP_"); 26 strcpy(uppercased, "HTTP_");
27 for (s = uppercased+5; *h; ++h) 27 for (s = uppercased+5; *h; ++h)
28 *s++ = *h == '-' ? '_' : toupper(*h); 28 *s++ = *h == '-' ? '_' : toupper(*h);
29 *s = 0; 29 *s = 0;
30 30
31 if (r = getenv(uppercased)) 31 if ((r = getenv(uppercased)))
32 return r; 32 return r;
33 else if (!strcasecmp(saved_h, "Content-length") 33 else if (!strcasecmp(saved_h, "Content-length")
34 || !strcasecmp(saved_h, "Content-type")) 34 || !strcasecmp(saved_h, "Content-type"))
35 return getenv(uppercased + 5); 35 return getenv(uppercased + 5);
36 else 36 else