Commit 8bd29f9c authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Don't hard code array size

parent dbfcff30
...@@ -63,6 +63,7 @@ enum VSL_transaction_e { ...@@ -63,6 +63,7 @@ enum VSL_transaction_e {
VSL_t_esireq, VSL_t_esireq,
VSL_t_bereq, VSL_t_bereq,
VSL_t_raw, VSL_t_raw,
VSL_t__MAX,
}; };
struct VSL_transaction { struct VSL_transaction {
......
...@@ -201,7 +201,7 @@ VSL_Match(struct VSL_data *vsl, const struct VSL_cursor *c) ...@@ -201,7 +201,7 @@ VSL_Match(struct VSL_data *vsl, const struct VSL_cursor *c)
return (1); return (1);
} }
static const char * const VSL_transactions[256] = { static const char * const VSL_transactions[VSL_t__MAX] = {
/* 12345678901234 */ /* 12345678901234 */
[VSL_t_unknown] = "<< Unknown >>", [VSL_t_unknown] = "<< Unknown >>",
[VSL_t_sess] = "<< Session >>", [VSL_t_sess] = "<< Session >>",
......
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