From 4de269763f5d38ff021ac724916e8aaf4e34be44 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Mon, 25 Aug 2025 11:16:55 +0100 Subject: [PATCH] database: DBTechAddPlane() constify API (const char*) --- database/DBtechtype.c | 10 +++++----- database/database.h.in | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/database/DBtechtype.c b/database/DBtechtype.c index 0a427910..12a5284b 100644 --- a/database/DBtechtype.c +++ b/database/DBtechtype.c @@ -264,12 +264,12 @@ DBTechInitType() /*ARGSUSED*/ bool -DBTechAddPlane(sectionName, argc, argv) - char *sectionName; - int argc; - char *argv[]; +DBTechAddPlane( + const char *sectionName, + int argc, + char *argv[]) { - char *cp; + const char *cp; if (DBNumPlanes >= PL_MAXTYPES) { diff --git a/database/database.h.in b/database/database.h.in index bb24ed34..8e0972f2 100644 --- a/database/database.h.in +++ b/database/database.h.in @@ -769,7 +769,7 @@ extern void DBTechInit(); extern bool DBTechSetTech(); extern void DBTechInitVersion(); extern bool DBTechSetVersion(); -extern bool DBTechAddPlane(); +extern bool DBTechAddPlane(const char *sectionName, int argc, char *argv[]); extern bool DBTechAddType(); extern bool DBTechAddAlias(); extern void DBTechFinalType();