aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-22 00:01:58 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-22 00:01:58 +0100
commit7c5858ec435baf8a0ca15052e5fd457e3443d8bd (patch)
tree877383a2d9383143e186c66671efd0c67bb0cf19
parent3710dcc1eb1a634d72ca216a7e2bcfd986e7671e (diff)
diag_msg: Mark dispatch table as 'const'
-rw-r--r--src/diag_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diag_msg.c b/src/diag_msg.c
index 20eca83..4d79b7f 100644
--- a/src/diag_msg.c
+++ b/src/diag_msg.c
@@ -177,7 +177,7 @@ static void diag_rx_ext_msg_terse_f(struct diag_instance *di, struct msgb *msgb)
}
-struct diag_cmd_dispatch_tbl cmd_tbl[] = {
+static const struct diag_cmd_dispatch_tbl cmd_tbl[] = {
{ DIAG_EXT_MSG_F, diag_rx_ext_msg_f },
{ DIAG_QSR_EXT_MSG_TERSE_F, diag_rx_ext_msg_terse_f },
};