[master] b6325269b polish flexelint options and fix typo

Nils Goroll nils.goroll at uplex.de
Wed Nov 18 16:27:07 UTC 2020


commit b6325269bc9bbb16923548675948fc25c96b91b2
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 18 17:25:47 2020 +0100

    polish flexelint options and fix typo

diff --git a/bin/varnishd/cache/cache_session.c b/bin/varnishd/cache/cache_session.c
index 5c5f94b20..e9ca3f215 100644
--- a/bin/varnishd/cache/cache_session.c
+++ b/bin/varnishd/cache/cache_session.c
@@ -35,7 +35,7 @@
  * sess fields, for instance ->fd being negative ->reason.
  *
  */
-//lint -e{766}
+//lint --e{766}
 
 #include "config.h"
 
diff --git a/bin/varnishd/flint.lnt b/bin/varnishd/flint.lnt
index 82e1891e8..ffb48351c 100644
--- a/bin/varnishd/flint.lnt
+++ b/bin/varnishd/flint.lnt
@@ -174,4 +174,4 @@
 -esym(765, HTTP_IterHdrPack)	// Could be made static
 -esym(765, ObjGetU32)		// Could be made static
 -esym(765, Lck_DestroyClass)	// Could be made static
--esum(769, obj_attr::OA__MAX)	// Not referenced
+-esym(769, obj_attr::OA__MAX)	// Not referenced
diff --git a/bin/varnishd/mgt/mgt_jail_unix.c b/bin/varnishd/mgt/mgt_jail_unix.c
index 9d2f2755a..c0d5c50d9 100644
--- a/bin/varnishd/mgt/mgt_jail_unix.c
+++ b/bin/varnishd/mgt/mgt_jail_unix.c
@@ -283,9 +283,8 @@ vju_make_workdir(const char *dname, const char *what, struct vsb *vsb)
 		    dname, vstrerror(errno));
 		return (1);
 	}
-/*lint -save -e570 */
+	//lint -e{570}
 	AZ(chown(dname, -1, vju_gid));
-/*lint -restore */
 	AZ(seteuid(vju_uid));
 	return (0);
 }


More information about the varnish-commit mailing list