mirror of
https://github.com/preble/libpinproc
synced 2026-02-22 18:15:25 +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:
committed by
Gerry Stellenberg
parent
624f7780a1
commit
5ad464b167
@@ -314,7 +314,7 @@ int main(int argc, const char **argv)
|
|||||||
PRLogSetCallback(TestLogger);
|
PRLogSetCallback(TestLogger);
|
||||||
|
|
||||||
for (i = 0; i < MACHINE_TYPES; i++) {
|
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;
|
machineType = machine_types[i].type;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user