Commit 59d15355 authored by Danny Mayer's avatar Danny Mayer
Browse files

casts required

parent 8ef03ac2
......@@ -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.
......
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment