From: phk Date: Sat, 19 Jul 2008 11:49:43 +0000 (+0000) Subject: Explicitly specify index in name array. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b574d97e23931c00f49fb3bd3a188dc1ce4fdb3a;p=varnish Explicitly specify index in name array. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2964 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_panic.c b/varnish-cache/bin/varnishd/cache_panic.c index e5dbc1b7..1232397a 100644 --- a/varnish-cache/bin/varnishd/cache_panic.c +++ b/varnish-cache/bin/varnishd/cache_panic.c @@ -66,7 +66,7 @@ static char *pstr = panicstr; /* step names */ static const char *steps[] = { -#define STEP(l, u) "STP_" #u, +#define STEP(l, u) [STP_##u] = "STP_" #u, #include "steps.h" #undef STEP };