1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

pinproctest: use standard strcmp() vs. strcmpi()

While case-insensitive compare of the machine type passed on the
command line would be nice, the function to do so has different names
on different platforms, and its behavior may be impacted by the user's
locale setting.
This commit is contained in:
Tom Collins
2020-06-26 09:05:55 -07:00
committed by Gerry Stellenberg
parent 624f7780a1
commit 5ad464b167

View File

@@ -314,7 +314,7 @@ int main(int argc, const char **argv)
PRLogSetCallback(TestLogger);
for (i = 0; i < MACHINE_TYPES; i++) {
if (_strcmpi(argv[1], machine_types[i].name) == 0) {
if (strcmp(argv[1], machine_types[i].name) == 0) {
machineType = machine_types[i].type;
break;
}