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:
@@ -55,7 +55,7 @@ precheck(struct monst* mon, struct obj* obj)
|
||||
|
||||
if (obj->oclass == POTION_CLASS) {
|
||||
coord cc;
|
||||
static const char *empty = "The potion turns out to be empty.";
|
||||
static const char *const empty = "The potion turns out to be empty.";
|
||||
struct monst *mtmp;
|
||||
|
||||
if (objdescr_is(obj, "milky")) {
|
||||
|
||||
Reference in New Issue
Block a user