aboutsummaryrefslogtreecommitdiffstats
path: root/xen/tools
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-05-30 09:59:09 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-05-30 09:59:09 +0100
commit57e9895926c04bc586b249f4dd103c052f7a784d (patch)
treea9a47d8d3fb9b69a899889098038c2bb69d06e35 /xen/tools
parent6f337f7427ca501032081b1bb548c78f8acd2e7e (diff)
downloadxen-57e9895926c04bc586b249f4dd103c052f7a784d.tar.gz
xen-57e9895926c04bc586b249f4dd103c052f7a784d.tar.bz2
xen-57e9895926c04bc586b249f4dd103c052f7a784d.zip
Fix xen build on NetBSD.
From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/tools')
-rw-r--r--xen/tools/symbols.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/tools/symbols.c b/xen/tools/symbols.c
index c21e012206..76eb88b585 100644
--- a/xen/tools/symbols.c
+++ b/xen/tools/symbols.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <stdint.h>
#include <ctype.h>
#define KSYM_NAME_LEN 127
@@ -103,7 +104,7 @@ static int read_symbol(FILE *in, struct sym_entry *s)
_sextratext = s->addr;
else if (strcmp(sym, "_eextratext") == 0)
_eextratext = s->addr;
- else if (toupper(stype) == 'A')
+ else if (toupper((uint8_t)stype) == 'A')
{
/* Keep these useful absolute symbols */
if (strcmp(sym, "__kernel_syscall_via_break") &&
@@ -113,7 +114,7 @@ static int read_symbol(FILE *in, struct sym_entry *s)
return -1;
}
- else if (toupper(stype) == 'U' ||
+ else if (toupper((uint8_t)stype) == 'U' ||
is_arm_mapping_symbol(sym))
return -1;
/* exclude also MIPS ELF local symbols ($L123 instead of .L123) */