From 6bf1736fb1923bbefd15c7e9ccc779bb54eb1b5e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 24 Feb 2009 10:48:35 +0100 Subject: [PATCH] [BUILD] proto_http did not build on gcc-2.95 (again) move the DPRINTF below the local variable declarations. (cherry picked from commit 7b92db4cd5c106f5110c871503de11aabd0776eb) The patch accidently got reverted. --- src/proto_http.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/proto_http.c b/src/proto_http.c index 0384996dea..35aa82c8c1 100644 --- a/src/proto_http.c +++ b/src/proto_http.c @@ -1521,16 +1521,6 @@ void http_msg_analyzer(struct buffer *buf, struct http_msg *msg, struct hdr_idx */ int http_process_request(struct session *s, struct buffer *req) { - - DPRINTF(stderr,"[%u] %s: session=%p b=%p, exp(r,w)=%u,%u bf=%08x bl=%d analysers=%02x\n", - now_ms, __FUNCTION__, - s, - req, - req->rex, req->wex, - req->flags, - req->l, - req->analysers); - /* * We will parse the partial (or complete) lines. * We will check the request syntax, and also join multi-line @@ -1552,6 +1542,15 @@ int http_process_request(struct session *s, struct buffer *req) struct http_msg *msg = &txn->req; struct proxy *cur_proxy; + DPRINTF(stderr,"[%u] %s: session=%p b=%p, exp(r,w)=%u,%u bf=%08x bl=%d analysers=%02x\n", + now_ms, __FUNCTION__, + s, + req, + req->rex, req->wex, + req->flags, + req->l, + req->analysers); + if (likely(req->lr < req->r)) http_msg_analyzer(req, msg, &txn->hdr_idx); -- 2.47.2