LookupStructFull() constify call-site

txInput.c: LookupStructFull() constify call-site
DBlabel.c: LookupStructFull() constify call-site
This commit is contained in:
Darryl L. Miles
2024-12-26 15:20:58 -05:00
committed by Tim Edwards
parent f5b41a06d6
commit fb8f7b94aa
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1549,7 +1549,7 @@ DBLoadFont(fontfile, scale)
float scale;
{
FILE *ff;
char *ascii_names[] = {
const char * const ascii_names[] = {
"space", "exclam", "quotedbl", "numbersign", "dollar",
"percent", "ampersand", "quoteright", "parenleft", "parenright",
"asterisk", "plus", "comma", "hyphen", "period", "slash", "zero",
@@ -1654,7 +1654,7 @@ DBLoadFont(fontfile, scale)
{
if (psname != NULL)
{
asciiidx = LookupStructFull(psname, ascii_names, sizeof(char *));
asciiidx = LookupStructFull(psname, ascii_names, sizeof(const char *));
if (asciiidx >= 0)
chardef = 2;
}