[master] df5e9b8 More minor flexelintery
Poul-Henning Kamp
phk at FreeBSD.org
Fri Nov 29 12:34:25 CET 2013
commit df5e9b8750e33c7a4a482de55ce48b389176a64d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Nov 29 11:34:08 2013 +0000
More minor flexelintery
diff --git a/lib/libvarnishapi/vsl_dispatch.c b/lib/libvarnishapi/vsl_dispatch.c
index c5e7d4f..802b525 100644
--- a/lib/libvarnishapi/vsl_dispatch.c
+++ b/lib/libvarnishapi/vsl_dispatch.c
@@ -652,7 +652,7 @@ vtx_set_parent(struct vtx *parent, struct vtx *child)
parent->n_child++;
do
parent->n_descend += 1 + child->n_descend;
- while ((parent = parent->parent));
+ while ((parent = parent->parent) != NULL);
}
/* Parse a begin or link record. Returns the number of elements that was
@@ -1150,7 +1150,7 @@ vslq_shmref_check(struct VSLQ *vslq)
struct chunk *chunk;
int i;
- while ((chunk = VTAILQ_FIRST(&vslq->shmrefs))) {
+ while ((chunk = VTAILQ_FIRST(&vslq->shmrefs)) != NULL) {
CHECK_OBJ_NOTNULL(chunk, CHUNK_MAGIC);
assert(chunk->type == chunk_t_shm);
i = VSL_Check(vslq->c, &chunk->shm.start);
More information about the varnish-commit
mailing list