Commit 74d77fbe authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Run FlexeLint to catch fluff.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1639 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 39e1e6cc
...@@ -166,10 +166,6 @@ struct worker { ...@@ -166,10 +166,6 @@ struct worker {
struct srcaddr *srcaddr; struct srcaddr *srcaddr;
struct acct acct; struct acct acct;
/* Backend connection space */
struct http bereq[1];
struct http beresp[1];
unsigned char *wlp, *wle; unsigned char *wlp, *wle;
unsigned wlr; unsigned wlr;
unsigned char wlog[WLOGSPACE]; unsigned char wlog[WLOGSPACE];
...@@ -407,8 +403,6 @@ const char *http_StatusMessage(int); ...@@ -407,8 +403,6 @@ const char *http_StatusMessage(int);
void HTTP_Init(void); void HTTP_Init(void);
void http_ClrHeader(struct http *to); void http_ClrHeader(struct http *to);
unsigned http_Write(struct worker *w, struct http *hp, int resp); unsigned http_Write(struct worker *w, struct http *hp, int resp);
void http_GetReq(struct http *to, struct http *fm);
void http_CopyReq(struct http *to, struct http *fm);
void http_CopyResp(struct http *to, struct http *fm); void http_CopyResp(struct http *to, struct http *fm);
void http_SetResp(struct http *to, const char *proto, const char *status, const char *response); void http_SetResp(struct http *to, const char *proto, const char *status, const char *response);
void http_FilterFields(struct worker *w, int fd, struct http *to, struct http *fm, unsigned how); void http_FilterFields(struct worker *w, int fd, struct http *to, struct http *fm, unsigned how);
......
...@@ -702,8 +702,8 @@ http_copyh(struct http *to, struct http *fm, unsigned n) ...@@ -702,8 +702,8 @@ http_copyh(struct http *to, struct http *fm, unsigned n)
to->hdf[n] = fm->hdf[n]; to->hdf[n] = fm->hdf[n];
} }
void static void
http_GetReq(struct http *to, struct http *fm) http_getreq(struct http *to, struct http *fm)
{ {
CHECK_OBJ_NOTNULL(fm, HTTP_MAGIC); CHECK_OBJ_NOTNULL(fm, HTTP_MAGIC);
...@@ -713,21 +713,6 @@ http_GetReq(struct http *to, struct http *fm) ...@@ -713,21 +713,6 @@ http_GetReq(struct http *to, struct http *fm)
http_seth(to, HTTP_HDR_PROTO, "HTTP/1.1"); http_seth(to, HTTP_HDR_PROTO, "HTTP/1.1");
} }
void
http_CopyReq(struct http *to, struct http *fm)
{
CHECK_OBJ_NOTNULL(fm, HTTP_MAGIC);
CHECK_OBJ_NOTNULL(to, HTTP_MAGIC);
http_copyh(to, fm, HTTP_HDR_REQ);
http_copyh(to, fm, HTTP_HDR_URL);
if (params->backend_http11)
http_seth(to, HTTP_HDR_PROTO, "HTTP/1.1");
else
http_copyh(to, fm, HTTP_HDR_PROTO);
}
void void
http_CopyResp(struct http *to, struct http *fm) http_CopyResp(struct http *to, struct http *fm)
{ {
...@@ -806,7 +791,7 @@ http_FilterHeader(struct sess *sp, unsigned how) ...@@ -806,7 +791,7 @@ http_FilterHeader(struct sess *sp, unsigned how)
hp = bereq->http; hp = bereq->http;
hp->logtag = HTTP_Tx; hp->logtag = HTTP_Tx;
http_GetReq(hp, sp->http); http_getreq(hp, sp->http);
http_FilterFields(sp->wrk, sp->fd, hp, sp->http, how); http_FilterFields(sp->wrk, sp->fd, hp, sp->http, how);
http_PrintfHeader(sp->wrk, sp->fd, hp, "X-Varnish: %u", sp->xid); http_PrintfHeader(sp->wrk, sp->fd, hp, "X-Varnish: %u", sp->xid);
http_PrintfHeader(sp->wrk, sp->fd, hp, http_PrintfHeader(sp->wrk, sp->fd, hp,
......
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
// cache_center.c // cache_center.c
-efunc(525, CNT_Session) // Negative indentation from line -efunc(525, CNT_Session) // Negative indentation from line
-efunc(525, http_FilterHeader) // Negative indentation from line -efunc(525, http_FilterFields) // Negative indentation from line
-efunc(539, http_FilterHeader) // Positive indentation from line -efunc(539, http_FilterFields) // Positive indentation from line
// cache_vcl.c // cache_vcl.c
-efunc(525, vcl_handlingname) // Negative indentation from line -efunc(525, vcl_handlingname) // Negative indentation from line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment