database: DBPlaneShortName() return const char *

This commit is contained in:
Darryl L. Miles
2025-10-04 20:50:31 -04:00
committed by R. Timothy Edwards
parent 4864a80179
commit 5093182f4a
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
@@ -1062,7 +1062,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];