Fix the following error on NetBSD 7.0.
../lib/ovs-numa.c: In function 'ovs_numa_set_cpu_mask':
../lib/ovs-numa.c:555:9: error: array subscript has type 'char'
[-Werror=char-subscripts]
Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
lib/ovs-numa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ovs-numa.c b/lib/ovs-numa.c
index 6750a14..7652636 100644
--- a/lib/ovs-numa.c
+++ b/lib/ovs-numa.c
@@ -552,7 +552,7 @@ ovs_numa_set_cpu_mask(const char *cmask)
}
for (i = strlen(cmask) - 1; i >= 0; i--) {
- char hex = toupper(cmask[i]);
+ char hex = toupper((unsigned char)cmask[i]);
int bin, j;
if (hex >= '0' && hex <= '9') {
--
2.5.4 (Apple Git-61)
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev