Commit 9995f85a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Enforce server and client name initials as 's' and 'c' respectively.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2700 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent d282b230
......@@ -102,6 +102,11 @@ client_new(char *name)
{
struct client *c;
if (*name != 'c') {
fprintf(stderr, "---- %-4s Client name must start with 'c'\n",
name);
exit (1);
}
ALLOC_OBJ(c, CLIENT_MAGIC);
AN(c);
c->name = name;
......
......@@ -107,6 +107,11 @@ server_new(char *name)
{
struct server *s;
if (*name != 's') {
fprintf(stderr, "---- %-4s Server name must start with 's'\n",
name);
exit (1);
}
ALLOC_OBJ(s, SERVER_MAGIC);
AN(s);
s->name = name;
......
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