[master] a19aeb455 Forgotten static declaration

Nils Goroll nils.goroll at uplex.de
Wed Jul 31 13:38:04 UTC 2024


commit a19aeb455c5cc46f0c73348f71f4499bb2379425
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Jul 31 15:37:18 2024 +0200

    Forgotten static declaration
    
    found by Flexelint

diff --git a/bin/varnishd/cache/cache_backend_probe.c b/bin/varnishd/cache/cache_backend_probe.c
index ee9f98bfc..04cbc4bfe 100644
--- a/bin/varnishd/cache/cache_backend_probe.c
+++ b/bin/varnishd/cache/cache_backend_probe.c
@@ -60,7 +60,7 @@ struct vbp_state {
 	const char			*name;
 };
 
-#define VBP_STATE(n) const struct vbp_state vbp_state_ ## n [1] = {{ .name = #n }}
+#define VBP_STATE(n) static const struct vbp_state vbp_state_ ## n [1] = {{ .name = #n }}
 VBP_STATE(scheduled);
 VBP_STATE(running);
 VBP_STATE(cold);


More information about the varnish-commit mailing list