net: mark read-only arrays as const

String literals are constant, and usually, we can also tag the array
of pointers const too, moving it to the .rodata section.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Jan Engelhardt
2009-08-05 10:42:58 -07:00
committed by David S. Miller
orang tua db71789c01
melakukan 36cbd3dcc1
36 mengubah file dengan 74 tambahan dan 66 penghapusan

Melihat File

@@ -143,7 +143,7 @@ out:
return 0;
}
static char *llc_conn_state_names[] = {
static const char *const llc_conn_state_names[] = {
[LLC_CONN_STATE_ADM] = "adm",
[LLC_CONN_STATE_SETUP] = "setup",
[LLC_CONN_STATE_NORMAL] = "normal",