p++;
hp->nhdr = 0;
+ r = NULL; /* For FlexeLint */
+ assert(p < hp->v); /* http_header_complete() guarantees this */
for (; p < hp->v; p = r) {
q = strchr(p, '\n');
assert(q != NULL);
http_read_f(int fd, short event, void *arg)
{
struct http *hp = arg;
- char *p;
unsigned l;
int i;
sup = 1;
break;
default:
+ sup = 0; /* for flexelint */
printf("mode = %d\n", mode);
assert(mode == 1 || mode == 2);
}
struct varnish_stats *VSL_stats;
static struct shmloghead *loghead;
-static unsigned char *logstart, *logend;
+static unsigned char *logstart;
static pthread_mutex_t vsl_mutex;
/*
{
va_list ap;
unsigned char *p;
- unsigned m, n;
+ unsigned n;
va_start(ap, fmt);
/* XXX check sanity of loghead */
logstart = (unsigned char *)loghead + loghead->start;
- logend = logstart + loghead->size;
VSL_stats = &loghead->stats;
AZ(pthread_mutex_init(&vsl_mutex, NULL));
}