database: DBPlaneShortName() return const char *

This commit is contained in:
Darryl L. Miles
2025-10-03 23:42:55 +01:00
parent 4d0f49d2a2
commit eb72a3e6d2
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -347,11 +347,11 @@ DBTypeShortName(
return ("???");
}
char *
DBPlaneShortName(pNum)
int pNum;
const char *
DBPlaneShortName(
int pNum)
{
NameList *tbl;
const NameList *tbl;
for (tbl = dbPlaneNameLists.sn_next;
tbl != &dbPlaneNameLists;
+1 -1
View File
@@ -1058,7 +1058,7 @@ extern HashTable DBTypeAliasTable;
extern char *DBPlaneLongNameTbl[NP];
/* Gives a short name for each plane: */
extern char *DBPlaneShortName();
extern const char *DBPlaneShortName();
/* Gives for each plane a mask of all tile types stored in that plane: */
extern TileTypeBitMask DBPlaneTypes[NP];