add missing const
If you want to declare a pointer which the address pointed to is constant, you should declare it as like `static const char *const var = "...";`. This commit supplies missing `const` and prevents some programming error in the future.
This commit is contained in:
@@ -1365,7 +1365,7 @@ draft_message(boolean unexpected)
|
||||
} else {
|
||||
/* "marching" is deliberately ambiguous; it might mean drills
|
||||
after entering military service or mean engaging in protests */
|
||||
static const char *draft_reaction[] = {
|
||||
static const char *const draft_reaction[] = {
|
||||
"enlisting", "marching", "protesting", "fleeing",
|
||||
};
|
||||
int dridx;
|
||||
|
||||
Reference in New Issue
Block a user