[master] f19a3c476 spelling: suppress

Poul-Henning Kamp phk at FreeBSD.org
Mon Aug 19 12:42:07 UTC 2024


commit f19a3c476391ef184f49b6bdc2447547c1b40926
Author: Josh Soref <2119212+jsoref at users.noreply.github.com>
Date:   Wed Aug 7 08:31:01 2024 -0400

    spelling: suppress
    
    Signed-off-by: Josh Soref <2119212+jsoref at users.noreply.github.com>

diff --git a/lib/libvarnishapi/vsl.c b/lib/libvarnishapi/vsl.c
index 8c3d33753..34e3d1088 100644
--- a/lib/libvarnishapi/vsl.c
+++ b/lib/libvarnishapi/vsl.c
@@ -95,7 +95,7 @@ VSL_New(void)
 	vsl->L_opt = 1000;
 	vsl->T_opt = 120.;
 	vsl->vbm_select = vbit_new(SLT__MAX);
-	vsl->vbm_supress = vbit_new(SLT__MAX);
+	vsl->vbm_suppress = vbit_new(SLT__MAX);
 	VTAILQ_INIT(&vsl->vslf_select);
 	VTAILQ_INIT(&vsl->vslf_suppress);
 
@@ -127,7 +127,7 @@ VSL_Delete(struct VSL_data *vsl)
 	CHECK_OBJ_NOTNULL(vsl, VSL_MAGIC);
 
 	vbit_destroy(vsl->vbm_select);
-	vbit_destroy(vsl->vbm_supress);
+	vbit_destroy(vsl->vbm_suppress);
 	vsl_IX_free(&vsl->vslf_select);
 	vsl_IX_free(&vsl->vslf_suppress);
 	VSL_ResetError(vsl);
@@ -206,7 +206,7 @@ VSL_Match(struct VSL_data *vsl, const struct VSL_cursor *c)
 	else if (!VTAILQ_EMPTY(&vsl->vslf_suppress) &&
 	    vsl_match_IX(vsl, &vsl->vslf_suppress, c))
 		return (0);
-	else if (vbit_test(vsl->vbm_supress, tag))
+	else if (vbit_test(vsl->vbm_suppress, tag))
 		return (0);
 
 	/* Default show */
diff --git a/lib/libvarnishapi/vsl_api.h b/lib/libvarnishapi/vsl_api.h
index cb5b7ac82..9a14e22c1 100644
--- a/lib/libvarnishapi/vsl_api.h
+++ b/lib/libvarnishapi/vsl_api.h
@@ -78,7 +78,7 @@ struct VSL_data {
 
 	/* Bitmaps of -ix selected tags */
 	struct vbitmap			*vbm_select;
-	struct vbitmap			*vbm_supress;
+	struct vbitmap			*vbm_suppress;
 
 	/* Lists of -IX filters */
 	vslf_list			vslf_select;
diff --git a/lib/libvarnishapi/vsl_arg.c b/lib/libvarnishapi/vsl_arg.c
index f7cbcc822..0fcdb4156 100644
--- a/lib/libvarnishapi/vsl_arg.c
+++ b/lib/libvarnishapi/vsl_arg.c
@@ -229,7 +229,7 @@ vsl_ix_arg(struct VSL_data *vsl, int opt, const char *arg)
 	vsl->flags |= F_SEEN_ixIX;
 
 	i = VSL_List2Tags(arg, -1, opt == 'x' ? vsl_vbm_bitset : vsl_vbm_bitclr,
-	    vsl->vbm_supress);
+	    vsl->vbm_suppress);
 	if (i == -1)
 		return (vsl_diag(vsl, "-%c: \"%s\" matches zero tags",
 		    (char)opt, arg));
@@ -356,10 +356,10 @@ VSL_Arg(struct VSL_data *vsl, int opt, const char *arg)
 	long l;
 
 	CHECK_OBJ_NOTNULL(vsl, VSL_MAGIC);
-	/* If first option is 'i', set all bits for supression */
+	/* If first option is 'i', set all bits for suppression */
 	if ((opt == 'i' || opt == 'I') && !(vsl->flags & F_SEEN_ixIX))
 		for (i = 0; i < SLT__MAX; i++)
-			vbit_set(vsl->vbm_supress, i);
+			vbit_set(vsl->vbm_suppress, i);
 
 	switch (opt) {
 	case 'b': vsl->b_opt = 1; return (1);


More information about the varnish-commit mailing list