From 947295d8868c24f75a858e42b579a271c1d2c3d2 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Thu, 12 Apr 2001 20:39:04 +0000 Subject: [PATCH] warning cleanup for HPUX-10.20: trivial unsigned vs sign char pointer issues. --- bin/rndc/rndc.c | 8 ++++---- lib/isccc/cc.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/rndc/rndc.c b/bin/rndc/rndc.c index 759d59b436..8c1c8ec165 100644 --- a/bin/rndc/rndc.c +++ b/bin/rndc/rndc.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: rndc.c,v 1.53 2001/04/11 20:37:39 bwelling Exp $ */ +/* $Id: rndc.c,v 1.54 2001/04/12 20:39:04 tale Exp $ */ /* * Principal Author: DCL @@ -514,11 +514,11 @@ main(int argc, char **argv) { exit(1); } - secret.rstart = secretarray; - secret.rend = secretarray + sizeof(secretarray); + secret.rstart = (unsigned char *)secretarray; + secret.rend = (unsigned char *)secretarray + sizeof(secretarray); DO("decode base64 secret", isccc_base64_decode(secretstr, &secret)); secret.rend = secret.rstart; - secret.rstart = secretarray; + secret.rstart = (unsigned char *)secretarray; /* * Find the port to connect to. diff --git a/lib/isccc/cc.c b/lib/isccc/cc.c index 54979768f3..2324cd370e 100644 --- a/lib/isccc/cc.c +++ b/lib/isccc/cc.c @@ -16,7 +16,7 @@ * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: cc.c,v 1.3 2001/03/28 23:10:38 bwelling Exp $ */ +/* $Id: cc.c,v 1.4 2001/04/12 20:36:53 tale Exp $ */ #include @@ -294,7 +294,7 @@ verify(isccc_sexpr_t *alist, unsigned char *data, unsigned int length, /* * Verify. */ - if (strcmp(digestb64, isccc_sexpr_tostring(hmd5)) != 0) + if (strcmp((char *)digestb64, isccc_sexpr_tostring(hmd5)) != 0) return (ISCCC_R_BADAUTH); return (ISC_R_SUCCESS); @@ -649,8 +649,8 @@ isccc_cc_defineuint32(isccc_sexpr_t *alist, const char *key, isc_uint32_t i) sprintf(b, "%u", i); len = strlen(b); - r.rstart = b; - r.rend = b + len; + r.rstart = (unsigned char *)b; + r.rend = (unsigned char *)b + len; return (isccc_alist_definebinary(alist, key, &r)); }