2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

warning cleanup for HPUX-10.20: trivial unsigned vs sign char pointer issues.

This commit is contained in:
David Lawrence
2001-04-12 20:39:04 +00:00
parent 7944c8c5f7
commit 947295d886
2 changed files with 8 additions and 8 deletions

View File

@@ -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.

View File

@@ -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 <config.h>
@@ -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));
}