Commit 2dfd6110 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

struct http_hdr is more than that, it is a general text handle, so

typedef it as "txt" instead.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2044 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 50440ca1
......@@ -102,10 +102,10 @@ char *WS_Alloc(struct ws *ws, unsigned bytes);
* HTTP Request/Response/Header handling structure.
*/
struct http_hdr {
typedef struct {
char *b;
char *e;
};
} txt;
enum httpwhence {
HTTP_Rx,
......@@ -124,7 +124,7 @@ struct http {
unsigned char conds; /* If-* headers present */
enum httpwhence logtag;
struct http_hdr hd[HTTP_HDR_MAX];
txt hd[HTTP_HDR_MAX];
unsigned char hdf[HTTP_HDR_MAX];
#define HDF_FILTER (1 << 0) /* Filtered by Connection */
unsigned nhd;
......@@ -493,7 +493,7 @@ void WRK_QueueSession(struct sess *sp);
void WRK_Reset(struct worker *w, int *fd);
unsigned WRK_Flush(struct worker *w);
unsigned WRK_Write(struct worker *w, const void *ptr, int len);
unsigned WRK_WriteH(struct worker *w, const struct http_hdr *hh, const char *suf);
unsigned WRK_WriteH(struct worker *w, const txt *hh, const char *suf);
#ifdef HAVE_SENDFILE
void WRK_Sendfile(struct worker *w, int fd, off_t off, unsigned len);
#endif /* HAVE_SENDFILE */
......
......@@ -174,7 +174,7 @@ http_Setup(struct http *hp, void *space, unsigned len)
static int
http_IsHdr(const struct http_hdr *hh, const char *hdr)
http_IsHdr(const txt *hh, const char *hdr)
{
unsigned l;
......
......@@ -108,7 +108,7 @@ WRK_Flush(struct worker *w)
}
unsigned
WRK_WriteH(struct worker *w, const struct http_hdr *hh, const char *suf)
WRK_WriteH(struct worker *w, const txt *hh, const char *suf)
{
unsigned u;
......
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