* the headers, even if we fill the entire length in the recv. */
char readbuf[AP_IOBUFSIZE + 1];
apr_size_t readbuflen;
- apr_size_t clen = 0;
- int rid, type = 0;
- char plen = 0;
+ apr_size_t clen;
+ int rid, type;
apr_bucket *b;
+ char plen;
/*
* below mapped to fcgi_header layout. We
* use a unsigned char array to ensure the
/* First, we grab the header... */
readbuflen = FCGI_HEADER_LEN;
- rv = apr_socket_recv(conn->sock, fheader, &readbuflen);
+ rv = apr_socket_recv(conn->sock, (char *) fheader, &readbuflen);
if (rv != APR_SUCCESS) {
break;
}
type = fheader[1];
- rid |= fheader[2] << 8;
- rid |= fheader[3] << 0;
+ rid = (fheader[2] << 8) | fheader[3];
if (rid != request_id) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server,
#endif
}
- clen |= fheader[4] << 8;
- clen |= fheader[5] << 0;
+ clen = (fheader[4] << 8) | fheader[5];
plen = fheader[6];