fix const declaration

parent b5061fca
...@@ -44,7 +44,7 @@ type_parse(VCL_ENUM e) { ...@@ -44,7 +44,7 @@ type_parse(VCL_ENUM e) {
WRONG("illegal type enum"); WRONG("illegal type enum");
} }
static const char const *type_s[_TYPE_E_MAX] = { static const char * const type_s[_TYPE_E_MAX] = {
[_TYPE_E_INVALID] = NULL, [_TYPE_E_INVALID] = NULL,
#define VMODENUM(n) [type_ ## n] = #n, #define VMODENUM(n) [type_ ## n] = #n,
#include "tbl_enum_type.h" #include "tbl_enum_type.h"
......
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