Commit 95a34ee9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Minor flexelintery

parent 4a9c1fdc
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
-e850 // for loop index variable '___' whose type category is '___' is modified in body of the for loop that began at '___' -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 -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 -e679 // Suspicious Truncation in arithmetic expression combining with pointer
......
...@@ -40,7 +40,7 @@ struct symbol { ...@@ -40,7 +40,7 @@ struct symbol {
uint8_t size; uint8_t size;
}; };
static struct symbol coding_table[] = { static const struct symbol coding_table[] = {
#define HPACK(i, v, l) {v, l}, #define HPACK(i, v, l) {v, l},
#include "vtc_h2_enctbl.h" #include "vtc_h2_enctbl.h"
#undef HPACK #undef HPACK
......
...@@ -1269,7 +1269,7 @@ cmd_sendhex(CMD_ARGS) ...@@ -1269,7 +1269,7 @@ cmd_sendhex(CMD_ARGS)
hdr.value.ptr = strdup(v); \ hdr.value.ptr = strdup(v); \
AN(hdr.value.ptr); \ AN(hdr.value.ptr); \
hdr.value.len = strlen(v); \ hdr.value.len = strlen(v); \
HPK_EncHdr(iter, &hdr); \ (void)HPK_EncHdr(iter, &hdr); \
free(hdr.key.ptr); \ free(hdr.key.ptr); \
free(hdr.value.ptr); \ free(hdr.value.ptr); \
} }
......
...@@ -532,6 +532,8 @@ read_file(const char *fn, int ntest) ...@@ -532,6 +532,8 @@ read_file(const char *fn, int ntest)
if (*q != '#') if (*q != '#')
break; break;
q = strchr(q, '\n'); q = strchr(q, '\n');
if (q == NULL)
break;
} }
if (q == NULL || *q == '\0') { if (q == NULL || *q == '\0') {
...@@ -566,6 +568,7 @@ main(int argc, char * const *argv) ...@@ -566,6 +568,7 @@ main(int argc, char * const *argv)
int ch, i; int ch, i;
int ntest = 1; /* Run tests this many times */ int ntest = 1; /* Run tests this many times */
uintmax_t bufsiz; uintmax_t bufsiz;
const char *p;
if (getenv("TMPDIR") != NULL) if (getenv("TMPDIR") != NULL)
tmppath = strdup(getenv("TMPDIR")); tmppath = strdup(getenv("TMPDIR"));
...@@ -579,8 +582,9 @@ main(int argc, char * const *argv) ...@@ -579,8 +582,9 @@ main(int argc, char * const *argv)
params_vsb = VSB_new_auto(); params_vsb = VSB_new_auto();
AN(params_vsb); AN(params_vsb);
if (getenv("VARNISHTEST_DURATION")) p = getenv("VARNISHTEST_DURATION");
vtc_maxdur = atoi(getenv("VARNISHTEST_DURATION")); if (p != NULL)
vtc_maxdur = atoi(p);
setbuf(stdout, NULL); setbuf(stdout, NULL);
setbuf(stderr, NULL); setbuf(stderr, NULL);
......
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