From 84b70dac4092565af7f58c165f95f61dfc7d90d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 13 Sep 2005 19:40:30 +0000 Subject: [PATCH] Avoid signedness warnings. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16059 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/check-common.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/asn1/check-common.c b/lib/asn1/check-common.c index 5ee2108e1..eb1965344 100644 --- a/lib/asn1/check-common.c +++ b/lib/asn1/check-common.c @@ -94,8 +94,8 @@ map_alloc(enum map_type type, const void *buf, (*map)->size = size + pagesize - (size % pagesize) + pagesize * 2; - p = (char *)mmap(0, (*map)->size, PROT_READ | PROT_WRITE, - flags, fd, 0); + p = (unsigned char *)mmap(0, (*map)->size, PROT_READ | PROT_WRITE, + flags, fd, 0); if (p == (unsigned char *)MAP_FAILED) err (1, "mmap"); @@ -249,7 +249,7 @@ generic_test (const struct test_case *tests, if (memcmp (buf, tests[i].bytes, tests[i].byte_len) != 0) { printf ("encoding of %s has bad bytes:\n" "correct: ", tests[i].name); - print_bytes (tests[i].bytes, tests[i].byte_len); + print_bytes ((unsigned char *)tests[i].bytes, tests[i].byte_len); printf ("\nactual: "); print_bytes (buf, sz); printf ("\n");