Skip to content

Commit

Permalink
fix #1 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Lvov committed Jul 20, 2016
1 parent ce26f11 commit 4c6e4bf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tempesta_fw/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,19 +685,18 @@ static int
tfw_http_add_hdr_110(TfwHttpMsg *hm)
{
int r;
static const char const * __read_mostly s_110 = "Response is Stale";
TfwVhost *vhost = tfw_vhost_get_default();

TfwStr rh = {
#define S_Stale "Warning: 110 -"
#define S_Stale "Warning: 110 - Response is stale"
.ptr = (TfwStr []) {
{ .ptr = S_Stale, .len = SLEN(S_Stale) },
{ .ptr = (void *)s_110,
.len = SLEN(s_110) },
{ .ptr = (void *)": ",
.len = 2 },
{ .ptr = *this_cpu_ptr(&g_buf),
.len = vhost->hdr_via_len },
},
.len = SLEN(S_Stale) + SLEN(s_110) + vhost->hdr_via_len,
.len = SLEN(S_Stale) + 2 + vhost->hdr_via_len,
.eolen = 2,
.flags = 3 << TFW_STR_CN_SHIFT
#undef S_Stale
Expand Down

0 comments on commit 4c6e4bf

Please sign in to comment.