[master] cb023d702 Flexelinting.

Poul-Henning Kamp phk at FreeBSD.org
Mon Jan 27 21:45:10 UTC 2020


commit cb023d702c1e1d0556f137086fb9fe9ffe57b98f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Jan 27 21:43:39 2020 +0000

    Flexelinting.
    
    (I'm assuming these two were typos, if they were intentional, I would
    have expected explanatory comments.)

diff --git a/lib/libvmod_vtc/vmod_vtc.c b/lib/libvmod_vtc/vmod_vtc.c
index 6b8c7bcf9..499b611aa 100644
--- a/lib/libvmod_vtc/vmod_vtc.c
+++ b/lib/libvmod_vtc/vmod_vtc.c
@@ -118,7 +118,7 @@ VCL_VOID v_matchproto_(td_vtc_sleep)
 vmod_sleep(VRT_CTX, VCL_DURATION t)
 {
 
-	CHECK_OBJ_ORNULL(ctx, VRT_CTX_MAGIC);
+	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
 	VTIM_sleep(t);
 }
 
@@ -348,7 +348,7 @@ vmod_proxy_header(VRT_CTX, VCL_ENUM venum, VCL_IP client, VCL_IP server,
 	int version;
 	size_t l;
 
-	CHECK_OBJ_ORNULL(ctx, VRT_CTX_MAGIC);
+	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
 
 	if (venum == VENUM(v1))
 		version = 1;


More information about the varnish-commit mailing list