r655 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Sat Aug 5 14:16:48 CEST 2006


Author: phk
Date: 2006-08-05 14:16:48 +0200 (Sat, 05 Aug 2006)
New Revision: 655

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_vcc.c
Log:
Rename struct vcls to vclprog



Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2006-08-05 11:44:37 UTC (rev 654)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c	2006-08-05 12:16:48 UTC (rev 655)
@@ -23,15 +23,15 @@
 #include "mgt.h"
 #include "mgt_cli.h"
 
-struct vcls {
-	TAILQ_ENTRY(vcls)	list;
+struct vclprog {
+	TAILQ_ENTRY(vclprog)	list;
 	char 			*name;
 	char			*fname;
 	int			active;
 };
 
 
-static TAILQ_HEAD(, vcls) vclhead = TAILQ_HEAD_INITIALIZER(vclhead);
+static TAILQ_HEAD(, vclprog) vclhead = TAILQ_HEAD_INITIALIZER(vclhead);
 
 /*--------------------------------------------------------------------*/
 
@@ -75,10 +75,10 @@
 
 /*--------------------------------------------------------------------*/
 
-static struct vcls *
+static struct vclprog *
 mgt_vcc_add(const char *name, char *file)
 {
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	vp = calloc(sizeof *vp, 1);
 	assert(vp != NULL);
@@ -89,7 +89,7 @@
 }
 
 static void
-mgt_vcc_del(struct vcls *vp)
+mgt_vcc_del(struct vclprog *vp)
 {
 	TAILQ_REMOVE(&vclhead, vp, list);
 	printf("unlink %s\n", vp->fname);
@@ -102,7 +102,7 @@
 static int
 mgt_vcc_delbyname(const char *name)
 {
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	TAILQ_FOREACH(vp, &vclhead, list) {
 		if (!strcmp(name, vp->name)) {
@@ -121,7 +121,7 @@
 	char *buf, *vf;
 	const char *p, *q;
 	struct sbuf *sb;
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
 	assert(sb != NULL);
@@ -172,7 +172,7 @@
 int
 mgt_push_vcls_and_start(int *status, char **p)
 {
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	TAILQ_FOREACH(vp, &vclhead, list) {
 		if (mgt_cli_askchild(status, p,
@@ -194,7 +194,7 @@
 void
 mgt_vcc_atexit(void)
 {
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	if (getpid() != mgt_pid)
 		return;
@@ -277,10 +277,10 @@
 	mgt_vcc_add(av[2], vf);
 }
 
-static struct vcls *
+static struct vclprog *
 mcf_find_vcl(struct cli *cli, const char *name)
 {
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	TAILQ_FOREACH(vp, &vclhead, list)
 		if (!strcmp(vp->name, name))
@@ -297,7 +297,7 @@
 {
 	int status;
 	char *p;
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	(void)priv;
 	vp = mcf_find_vcl(cli, av[2]);
@@ -323,7 +323,7 @@
 {
 	int status;
 	char *p;
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	(void)priv;
 	vp = mcf_find_vcl(cli, av[2]);
@@ -347,7 +347,7 @@
 {
 	int status;
 	char *p;
-	struct vcls *vp;
+	struct vclprog *vp;
 
 	(void)av;
 	(void)priv;




More information about the varnish-commit mailing list