[master] d6b8b98 Move extern to common #include

Poul-Henning Kamp phk at FreeBSD.org
Sat Oct 21 22:11:05 UTC 2017


commit d6b8b982794daa28b04bca5900ba973da7dd2e7e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Oct 21 22:10:30 2017 +0000

    Move extern to common #include

diff --git a/bin/varnishd/cache/cache_varnishd.h b/bin/varnishd/cache/cache_varnishd.h
index 86ea8c1..8402829 100644
--- a/bin/varnishd/cache/cache_varnishd.h
+++ b/bin/varnishd/cache/cache_varnishd.h
@@ -219,6 +219,9 @@ void VRTPRIV_init(struct vrt_privs *privs);
 void VRTPRIV_dynamic_kill(struct vrt_privs *privs, uintptr_t id);
 void pan_privs(struct vsb *, const struct vrt_privs *);
 
+/* cache_vrt_priv.c */
+extern struct vrt_privs cli_task_privs[1];
+
 /* cache_vrt_vmod.c */
 void VMOD_Init(void);
 void VMOD_Panic(struct vsb *);
diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index 7792ab1..547976e 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -101,7 +101,6 @@ static struct vrt_ctx ctx_cli;
 static unsigned handling_cli;
 static struct ws ws_cli;
 static uintptr_t ws_snapshot_cli;
-extern struct vrt_privs cli_task_privs[1];
 
 /*--------------------------------------------------------------------*/
 


More information about the varnish-commit mailing list