Commit dd17e5c4 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Constify

The qualifiers were accidentally lost in 17a456bd, because barriers
became the template and were the only non-const occurrence.
parent 2d927b12
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment