database: DBTypeShortName() return const char *

This commit is contained in:
Darryl L. Miles
2025-10-03 23:42:55 +01:00
parent b5d7fb080b
commit 4d0f49d2a2
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -327,11 +327,11 @@ DBTechNoisyNamePlane(planename)
* ----------------------------------------------------------------------------
*/
char *
DBTypeShortName(type)
TileType type;
const char *
DBTypeShortName(
TileType type)
{
NameList *tbl;
const NameList *tbl;
for (tbl = dbTypeNameLists.sn_next;
tbl != &dbTypeNameLists;
+1 -1
View File
@@ -1120,7 +1120,7 @@ extern PlaneMask DBTypePlaneMaskTbl[TT_MAXTYPES];
extern char *DBTypeLongNameTbl[TT_MAXTYPES];
/* Gives a short name for a tile type: */
extern char *DBTypeShortName();
extern const char *DBTypeShortName(TileType type);
/*
* The following give masks of all planes that may be affected
+1 -1
View File
@@ -32,7 +32,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
#include "drc/drc.h"
extern char *maskToPrint();
extern char *DBTypeShortName();
extern const char *DBTypeShortName(TileType type);
/*
* ----------------------------------------------------------------------------