diff src/c/fastcgi.c @ 1139:398ed1b89ee7

Change to satisfy GCC implicit aliasing rules
author Adam Chlipala <adamc@hcoop.net>
date Sat, 30 Jan 2010 12:00:08 -0500
parents b7118ffd32ae
children 15767031950c
line wrap: on
line diff
--- a/src/c/fastcgi.c	Sat Jan 30 11:21:26 2010 -0500
+++ b/src/c/fastcgi.c	Sat Jan 30 12:00:08 2010 -0500
@@ -336,8 +336,8 @@
     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;
     }