database: DBTypeShortName() return const char *

This commit is contained in:
Darryl L. Miles 2025-08-25 11:01:41 +01:00 committed by R. Timothy Edwards
parent 70054ccde2
commit 4864a80179
3 changed files with 6 additions and 6 deletions

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;

View File

@ -1124,7 +1124,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

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);
/*
* ----------------------------------------------------------------------------