database: DBPlaneShortName() return const char *

This commit is contained in:
Darryl L. Miles 2025-08-25 11:08:26 +01:00 committed by R. Timothy Edwards
parent 4864a80179
commit 5093182f4a
2 changed files with 5 additions and 5 deletions

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;

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];