mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-28 17:15:13 +02:00
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:
committed by
Tim Edwards
parent
fb8f7b94aa
commit
14b6453707
+2
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user