Whamcloud - gitweb
LU-6142 misc: declare static chars as const where possible.
[fs/lustre-release.git] / lustre / target / tgt_main.c
index ce15894..bdd05e7 100644 (file)
@@ -39,7 +39,7 @@
 
 /* This must be longer than the longest string below */
 #define SYNC_STATES_MAXLEN 16
-static char *sync_lock_cancel_states[] = {
+static const char * const sync_lock_cancel_states[] = {
        [SYNC_LOCK_CANCEL_NEVER]        = "never",
        [SYNC_LOCK_CANCEL_BLOCKING]     = "blocking",
        [SYNC_LOCK_CANCEL_ALWAYS]       = "always",