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:
@@ -5944,7 +5944,7 @@ maybe_finish_sokoban(void)
|
||||
const char *
|
||||
trapname(int ttyp, boolean override)
|
||||
{
|
||||
static const char *halu_trapnames[] = {
|
||||
static const char *const halu_trapnames[] = {
|
||||
/* riffs on actual nethack traps */
|
||||
"bottomless pit", "polymorphism trap", "devil teleporter",
|
||||
"falling boulder trap", "anti-anti-magic field", "weeping gas trap",
|
||||
|
||||
Reference in New Issue
Block a user