Make brandelf(1)'s -t "ABI format" case insensitive, as the ABI value

given is looked up in a table and no longer stored literally in the
header.

Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz
PR: 80499
MFC After: 1 month
This commit is contained in:
Brian Feldman 2005-05-02 17:19:33 +00:00
parent 2c443c417c
commit 816e8c037d

View File

@ -189,7 +189,7 @@ elftype(const char *elfstrtype)
for (elfwalk = 0;
elfwalk < sizeof(elftypes)/sizeof(elftypes[0]);
elfwalk++)
if (strcmp(elfstrtype, elftypes[elfwalk].str) == 0)
if (strcasecmp(elfstrtype, elftypes[elfwalk].str) == 0)
return elftypes[elfwalk].value;
return -1;
}