Skip to content

Commit

Permalink
Minor flexelintery
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed Apr 28, 2017
1 parent 4a9c1fd commit 95a34ee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions bin/varnishtest/flint.lnt
Expand Up @@ -16,6 +16,8 @@
-e850 // for loop index variable '___' whose type category is '___' is modified in body of the for loop that began at '___'
-e443 // for clause irregularity: variable '___' initialized in 1st expression does not match '___' modified in 3rd

-emacro({506,774},FEATURE)
-emacro({506,774},STRTOU32_CHECK)

-e679 // Suspicious Truncation in arithmetic expression combining with pointer

Expand Down
2 changes: 1 addition & 1 deletion bin/varnishtest/vtc_h2_hpack.c
Expand Up @@ -40,7 +40,7 @@ struct symbol {
uint8_t size;
};

static struct symbol coding_table[] = {
static const struct symbol coding_table[] = {
#define HPACK(i, v, l) {v, l},
#include "vtc_h2_enctbl.h"
#undef HPACK
Expand Down
2 changes: 1 addition & 1 deletion bin/varnishtest/vtc_http2.c
Expand Up @@ -1269,7 +1269,7 @@ cmd_sendhex(CMD_ARGS)
hdr.value.ptr = strdup(v); \
AN(hdr.value.ptr); \
hdr.value.len = strlen(v); \
HPK_EncHdr(iter, &hdr); \
(void)HPK_EncHdr(iter, &hdr); \
free(hdr.key.ptr); \
free(hdr.value.ptr); \
}
Expand Down
8 changes: 6 additions & 2 deletions bin/varnishtest/vtc_main.c
Expand Up @@ -532,6 +532,8 @@ read_file(const char *fn, int ntest)
if (*q != '#')
break;
q = strchr(q, '\n');
if (q == NULL)
break;
}

if (q == NULL || *q == '\0') {
Expand Down Expand Up @@ -566,6 +568,7 @@ main(int argc, char * const *argv)
int ch, i;
int ntest = 1; /* Run tests this many times */
uintmax_t bufsiz;
const char *p;

if (getenv("TMPDIR") != NULL)
tmppath = strdup(getenv("TMPDIR"));
Expand All @@ -579,8 +582,9 @@ main(int argc, char * const *argv)

params_vsb = VSB_new_auto();
AN(params_vsb);
if (getenv("VARNISHTEST_DURATION"))
vtc_maxdur = atoi(getenv("VARNISHTEST_DURATION"));
p = getenv("VARNISHTEST_DURATION");
if (p != NULL)
vtc_maxdur = atoi(p);

setbuf(stdout, NULL);
setbuf(stderr, NULL);
Expand Down

0 comments on commit 95a34ee

Please sign in to comment.