mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
LookupStructFull() constify call-site
txInput.c: LookupStructFull() constify call-site DBlabel.c: LookupStructFull() constify call-site
This commit is contained in:
committed by
Tim Edwards
parent
f5b41a06d6
commit
fb8f7b94aa
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user