database: DBTypeLongNameTbl() constify data (const char*)

This commit is contained in:
Darryl L. Miles
2025-10-04 20:50:31 -04:00
committed by R. Timothy Edwards
parent 6d8c3eee1a
commit dc45242d46
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -232,7 +232,7 @@ showTech(
fprintf(outf, "\n");
fprintf(outf, "Types:\n");
for (i = 0; i < DBNumTypes; i++) {
int pl ; char *spl ;
int pl ; const char *spl ;
pl = DBPlane(i);
spl = ( pl <= 0 || pl > DBNumPlanes ) ? "??" : DBPlaneLongName(pl);
@@ -1047,7 +1047,7 @@ CmdWatch(
pNum = DBTechNamePlane(cmd->tx_argv[1]);
if (pNum < 0)
{
char *cp;
const char *cp;
TxError("Unrecognized plane: %s. Legal names are:\n",
cmd->tx_argv[1]);
for(pNum=0; pNum < PL_MAXTYPES; pNum++) {