summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-01-30 12:00:08 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-01-30 12:00:08 -0500
commit2b9d3665ec94bb335c93ac7c586ee28f41b35cd6 (patch)
tree81a5fc6069abea0091fce4c7e0d992f972457f17
parentd3cd94b0c819c58492cc45576565a96abdd26eda (diff)
Change to satisfy GCC implicit aliasing rules
-rw-r--r--src/c/fastcgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/fastcgi.c b/src/c/fastcgi.c
index 2c9d1da1..092cd056 100644
--- a/src/c/fastcgi.c
+++ b/src/c/fastcgi.c
@@ -336,8 +336,8 @@ static void *worker(void *data) {
if (r->type != FCGI_BEGIN_REQUEST) {
write_stderr(out, "First message is not BEGIN_REQUEST\n");
goto done;
- } else if (((FCGI_BeginRequestBody *)&r->contentData)->roleB0 != FCGI_RESPONDER) {
- write_stderr(out, "First message is not BEGIN_REQUEST\n");
+ } else if (r->contentData[1] != FCGI_RESPONDER) {
+ write_stderr(out, "Request is for a role besides RESPONDER\n");
goto done;
}