From 5ad464b167373456b5538c807cd7553b49d30b1a Mon Sep 17 00:00:00 2001 From: Tom Collins Date: Fri, 26 Jun 2020 09:05:55 -0700 Subject: [PATCH] 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. --- examples/pinproctest/pinproctest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pinproctest/pinproctest.cpp b/examples/pinproctest/pinproctest.cpp index cf4bb63..a802f9e 100644 --- a/examples/pinproctest/pinproctest.cpp +++ b/examples/pinproctest/pinproctest.cpp @@ -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; }