[master] bb6d88588 Style OCD: () around return values

Poul-Henning Kamp phk at FreeBSD.org
Mon Aug 30 10:49:05 UTC 2021


commit bb6d88588aea0ecd179e9cf21077901e13ff44e1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 30 10:48:39 2021 +0000

    Style OCD:  () around return values

diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index e0eafe374..872f9388f 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -203,7 +203,7 @@ VPI_acl_table(VRT_CTX, VCL_IP p, unsigned n, unsigned m, const uint8_t *tbl,
 		sz /= m;
 		if (str != NULL)
 			VPI_acl_log(ctx, str[sz]);
-		return *ptr;
+		return (*ptr);
 	}
 	if (str != NULL)
 		VPI_acl_log(ctx, fin);
diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index d77fd0596..41f18d828 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -75,7 +75,7 @@ h2_framename(enum h2frame h2f)
 {
 
 	switch (h2f) {
-#define H2_FRAME(l,u,t,f,...)	case H2F_##u: return #u;
+#define H2_FRAME(l,u,t,f,...)	case H2F_##u: return (#u);
 #include "tbl/h2_frames.h"
 	default:
 		return (NULL);
diff --git a/include/vbm.h b/include/vbm.h
index 4f0486cf1..1136d19d9 100644
--- a/include/vbm.h
+++ b/include/vbm.h
@@ -102,7 +102,7 @@ vbit_init(void *p, size_t sz)
 	struct vbitmap *vb;
 
 	if (sz < sizeof(*vb))
-		return NULL;
+		return (NULL);
 
 	memset(p, 0, sz);
 	vb = p;
diff --git a/lib/libvcc/vcc_acl.c b/lib/libvcc/vcc_acl.c
index 96360b8d3..1982db96a 100644
--- a/lib/libvcc/vcc_acl.c
+++ b/lib/libvcc/vcc_acl.c
@@ -527,7 +527,7 @@ vcc_acl_emit_tables(const struct vcc *tl, unsigned n, const char *name)
 		}
 		Fh(tl, 0, "};\n");
 	}
-	return  (rv);
+	return (rv);
 }
 
 /*********************************************************************


More information about the varnish-commit mailing list