summaryrefslogtreecommitdiff
path: root/src
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
commit02afe045eb1e420b3b09d69f76d4b3b512d43be5 (patch)
tree81a5fc6069abea0091fce4c7e0d992f972457f17 /src
parent551b819fe26edf69619ecf0bd9507eed155c259a (diff)
Change to satisfy GCC implicit aliasing rules
Diffstat (limited to 'src')
-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;
}