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:
@@ -589,7 +589,7 @@ check_ransacked(char * s)
|
||||
}
|
||||
|
||||
#define ORC_LEADER 1
|
||||
static const char *orcfruit[] = { "paddle cactus", "dwarven root" };
|
||||
static const char *const orcfruit[] = { "paddle cactus", "dwarven root" };
|
||||
|
||||
static void
|
||||
migrate_orc(struct monst* mtmp, unsigned long mflags)
|
||||
|
||||
Reference in New Issue
Block a user