LookupStruct() constify call-site

irouter/irTestCmd.c: LookupStruct() constify call-site
irouter/irCommand.c: LookupStruct() constify call-site
mzrouter/mzTestCmd.c: LookupStruct() constify call-site
mzrouter/mzTech.c: LookupStruct() constify call-site
router/rtrCmd.c: LookupStruct() constify call-site
plow/PlowTest.c: LookupStruct() constify call-site
plow/PlowTech.c: LookupStruct() constify call-site
plot/plotVers.c: LookupStruct() constify call-site
grouter/grouteTest.c: LookupStruct() constify call-site
garouter/gaTest.c: LookupStruct() constify call-site
extract/ExtTest.c: LookupStruct() constify call-site
extract/ExtTech.c: LookupStruct() constify call-site
extflat/EFread.c: LookupStruct() constify call-site
DRCtech.c: LookupStruct() constify call-site
debugFlags.c: LookupStruct() constify call-site
CmdSubrs.c: LookupStruct() constify call-site
geometry.c: LookupStruct() constify call-site
set.c: LookupStruct() constify call-site
This commit is contained in:
Darryl L. Miles
2024-12-26 15:20:58 -05:00
committed by Tim Edwards
parent fb8f7b94aa
commit 14b6453707
18 changed files with 95 additions and 95 deletions
+2 -2
View File
@@ -407,7 +407,7 @@ PlotColorVersTechLine(sectionName, argc, argv)
char *argv[]; /* Pointers to fields of line. */
{
VersatecStyle *new;
static struct { char *l_str; int l_color; } colors[] = {
static const struct { const char *l_str; int l_color; } colors[] = {
{"black", BLACK},
{"cyan", CYAN},
{"magenta", MAGENTA},
@@ -449,7 +449,7 @@ PlotColorVersTechLine(sectionName, argc, argv)
freeMagic((char *)new);
return TRUE;
}
i = LookupStruct(argv[1], (LookupTable *) colors, sizeof colors[0]);
i = LookupStruct(argv[1], (const LookupTable *) colors, sizeof colors[0]);
if (i < 0)
{
TechError("First field must be BLACK, CYAN, MAGENTA or YELLOW.\n");