Skip to content

Commit 2189d1c

Browse files
committed
utils: use hwloc_strncasecmp()
Forgotten in commit fa4d81c Signed-off-by: Brice Goglin <[email protected]>
1 parent 52ef2fa commit 2189d1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/hwloc/hwloc-calc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define HWLOC_CALC_H
1111

1212
#include "hwloc.h"
13-
#include "private/misc.h" /* for HWLOC_OBJ_TYPE_NONE */
13+
#include "private/misc.h" /* for HWLOC_OBJ_TYPE_NONE and for hwloc_strncasecmp() */
1414
#include "misc.h"
1515

1616
#include <stdlib.h>
@@ -749,7 +749,7 @@ hwloc_calc_process_location_as_set(struct hwloc_calc_location_context_s *lcontex
749749

750750
if (cpuset_format == HWLOC_UTILS_CPUSET_FORMAT_UNKNOWN) {
751751
/* ambiguity list and hwloc if list of singleton like 1,3,5 which can be parsed as 0x1,0x3,0x5 or 1-1,3-3,5-5 */
752-
if (strncasecmp(arg, "0x", 2) && strchr(arg, '-'))
752+
if (hwloc_strncasecmp(arg, "0x", 2) && strchr(arg, '-'))
753753
cpuset_format = HWLOC_UTILS_CPUSET_FORMAT_LIST;
754754
else if (strchr(arg, ','))
755755
cpuset_format = HWLOC_UTILS_CPUSET_FORMAT_HWLOC;

0 commit comments

Comments
 (0)