summaryrefslogtreecommitdiff
path: root/sysutils/xenkernel411/patches/patch-xen_tools_symbols.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/xenkernel411/patches/patch-xen_tools_symbols.c')
-rw-r--r--sysutils/xenkernel411/patches/patch-xen_tools_symbols.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sysutils/xenkernel411/patches/patch-xen_tools_symbols.c b/sysutils/xenkernel411/patches/patch-xen_tools_symbols.c
new file mode 100644
index 00000000000..2c98e795a54
--- /dev/null
+++ b/sysutils/xenkernel411/patches/patch-xen_tools_symbols.c
@@ -0,0 +1,19 @@
+$NetBSD: patch-xen_tools_symbols.c,v 1.1 2018/07/24 13:40:11 bouyer Exp $
+fix "error: array subscript has type 'char'"
+
+--- xen/tools/symbols.c.orig 2018-04-17 19:21:31.000000000 +0200
++++ xen/tools/symbols.c 2018-04-23 13:29:47.000000000 +0200
+@@ -173,11 +173,11 @@
+ /* include the type field in the symbol name, so that it gets
+ * compressed together */
+ s->len = strlen(str) + 1;
+- if (islower(stype) && filename)
++ if (islower((uint8_t)stype) && filename)
+ s->len += strlen(filename) + 1;
+ s->sym = malloc(s->len + 1);
+ sym = SYMBOL_NAME(s);
+- if (islower(stype) && filename) {
++ if (islower((uint8_t)stype) && filename) {
+ sym = stpcpy(sym, filename);
+ *sym++ = '#';
+ }