[master] dd17e5c Constify

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Mar 8 20:43:06 CET 2017


commit dd17e5c413c400b16ca6319c3735b47f5b89ed00
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Mar 8 20:40:47 2017 +0100

    Constify
    
    The qualifiers were accidentally lost in 17a456b, because barriers
    became the template and were the only non-const occurrence.

diff --git a/bin/varnishtest/vtc_barrier.c b/bin/varnishtest/vtc_barrier.c
index d621f68..6a131a0 100644
--- a/bin/varnishtest/vtc_barrier.c
+++ b/bin/varnishtest/vtc_barrier.c
@@ -70,7 +70,7 @@ struct barrier {
 static VTAILQ_HEAD(, barrier)	barriers = VTAILQ_HEAD_INITIALIZER(barriers);
 
 static struct barrier *
-barrier_new(char *name, struct vtclog *vl)
+barrier_new(const char *name, struct vtclog *vl)
 {
 	struct barrier *b;
 
diff --git a/bin/varnishtest/vtc_client.c b/bin/varnishtest/vtc_client.c
index 18f5cef..24296ba 100644
--- a/bin/varnishtest/vtc_client.c
+++ b/bin/varnishtest/vtc_client.c
@@ -165,7 +165,7 @@ client_thread(void *priv)
  */
 
 static struct client *
-client_new(char *name, struct vtclog *vl)
+client_new(const char *name, struct vtclog *vl)
 {
 	struct client *c;
 
diff --git a/bin/varnishtest/vtc_logexp.c b/bin/varnishtest/vtc_logexp.c
index df47ec4..4bed257 100644
--- a/bin/varnishtest/vtc_logexp.c
+++ b/bin/varnishtest/vtc_logexp.c
@@ -199,7 +199,7 @@ logexp_delete(struct logexp *le)
 }
 
 static struct logexp *
-logexp_new(char *name, struct vtclog *vl)
+logexp_new(const char *name, struct vtclog *vl)
 {
 	struct logexp *le;
 
diff --git a/bin/varnishtest/vtc_process.c b/bin/varnishtest/vtc_process.c
index b9249e0..46d97ae 100644
--- a/bin/varnishtest/vtc_process.c
+++ b/bin/varnishtest/vtc_process.c
@@ -85,7 +85,7 @@ static VTAILQ_HEAD(, process)	processes =
 	} while (0)
 
 static struct process *
-process_new(char *name, struct vtclog *vl)
+process_new(const char *name, struct vtclog *vl)
 {
 	struct process *p;
 	struct vsb *vsb;
diff --git a/bin/varnishtest/vtc_server.c b/bin/varnishtest/vtc_server.c
index 18fe363..773e7fb 100644
--- a/bin/varnishtest/vtc_server.c
+++ b/bin/varnishtest/vtc_server.c
@@ -71,7 +71,7 @@ static VTAILQ_HEAD(, server)	servers =
  */
 
 static struct server *
-server_new(char *name, struct vtclog *vl)
+server_new(const char *name, struct vtclog *vl)
 {
 	struct server *s;
 
diff --git a/bin/varnishtest/vtc_varnish.c b/bin/varnishtest/vtc_varnish.c
index a58bf6b..c3432f2 100644
--- a/bin/varnishtest/vtc_varnish.c
+++ b/bin/varnishtest/vtc_varnish.c
@@ -278,7 +278,7 @@ varnishlog_thread(void *priv)
  */
 
 static struct varnish *
-varnish_new(char *name, struct vtclog *vl)
+varnish_new(const char *name, struct vtclog *vl)
 {
 	struct varnish *v;
 	struct vsb *vsb;



More information about the varnish-commit mailing list