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

casts required

This commit is contained in:
Danny Mayer
2002-08-01 03:31:44 +00:00
parent 8ef03ac274
commit 59d1535572
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: ds_43.c,v 1.2 2002/06/17 04:01:35 marka Exp $ */
/* $Id: ds_43.c,v 1.3 2002/08/01 03:31:44 mayer Exp $ */
/* draft-ietf-dnsext-delegation-signer-05.txt */
@@ -62,7 +62,7 @@ fromtext_ds(ARGS_FROMTEXT) {
if (token.value.as_ulong > 0xff)
RETTOK(ISC_R_RANGE);
RETERR(uint8_tobuffer(token.value.as_ulong, target));
type = token.value.as_ulong;
type = (isc_uint16_t) token.value.as_ulong;
/*
* Digest.

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: apl_42.c,v 1.3 2002/07/04 04:19:54 marka Exp $ */
/* $Id: apl_42.c,v 1.4 2002/08/01 03:31:44 mayer Exp $ */
/* RFC 3123 */
@@ -53,7 +53,7 @@ fromtext_in_apl(ARGS_FROMTEXT) {
neg = ISC_TF(*cp == '!');
if (neg)
cp++;
afi = strtoul(cp, &ap, 10);
afi = (isc_uint16_t) strtoul(cp, &ap, 10);
if (*ap++ != ':' || cp == ap)
RETTOK(DNS_R_SYNTAX);
if (afi > 0xffff)
@@ -62,7 +62,7 @@ fromtext_in_apl(ARGS_FROMTEXT) {
if (slash == NULL || slash == ap)
RETTOK(DNS_R_SYNTAX);
*slash++ = '\0';
prefix = strtoul(slash, &cp, 10);
prefix = (isc_uint8_t) strtoul(slash, &cp, 10);
if (*cp != '\0' || slash == cp)
RETTOK(DNS_R_SYNTAX);
switch (afi) {