Commit ec988c12 authored by Nils Goroll's avatar Nils Goroll

use DCS_TYPE_COUNT rather than a literal integer

parent ea05e259
......@@ -964,7 +964,7 @@ const char *dcs_checksum = DCS_CHECKSUM;
EOF
_VCL (F_CLASSIFIER_C, VCL_TOP,
'const char * const dcs_type['.scalar(keys %typeenum2nbtype)."] = {\n\t".
"const char * const dcs_type[DCS_TYPE_COUNT] = {\n\t".
join(",\n\t",
map { '['.$_.'] = "'.c_escape($typeenum2nbtype{$_}).'"' }
sort keys %typeenum2nbtype).
......
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