Commit 83ac7ce8 authored by Bob Halley's avatar Bob Halley
Browse files

lint

parent b5fd61fd
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rdata.c,v 1.28 1999/02/05 06:41:20 marka Exp $ */
/* $Id: rdata.c,v 1.29 1999/02/06 01:45:10 halley Exp $ */
#include <config.h>
......@@ -1222,18 +1222,18 @@ byte_btoa(int c, isc_buffer_t *target, struct state *state) {
if (tmpword < 0) {
/* Because some don't support u_long */
tmp = 32;
tmpword -= (int32_t)(85 * 85 * 85 * 85 * 32);
tmpword -= (isc_int32_t)(85 * 85 * 85 * 85 * 32);
}
if (tmpword < 0) {
tmp = 64;
tmpword -= (int32_t)(85 * 85 * 85 * 85 * 32);
tmpword -= (isc_int32_t)(85 * 85 * 85 * 85 * 32);
}
if (tr.length < 5)
return (DNS_R_NOSPACE);
tr.base[0] = atob_digits[(tmpword /
(int32_t)(85 * 85 * 85 * 85))
(isc_int32_t)(85 * 85 * 85 * 85))
+ tmp];
tmpword %= (int32_t)(85 * 85 * 85 * 85);
tmpword %= (isc_int32_t)(85 * 85 * 85 * 85);
tr.base[1] = atob_digits[tmpword / (85 * 85 * 85)];
tmpword %= (85 * 85 * 85);
tr.base[2] = atob_digits[tmpword / (85 * 85)];
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a6_38.c,v 1.1 1999/02/02 04:52:31 marka Exp $ */
/* $Id: a6_38.c,v 1.2 1999/02/06 01:45:11 halley Exp $ */
/* draft-ietf-ipngwg-dns-lookups-03.txt */
......@@ -67,7 +67,7 @@ fromtext_in_a6(dns_rdataclass_t class, dns_rdatatype_t type,
/* octets 0..15 */
RETERR(gettoken(lexer, &token, isc_tokentype_string,
ISC_FALSE));
if (isc_inet_pton(AF_INET6, token.value.as_pointer, &addr) != 1)
if (isc_inet_pton(AF_INET6, token.value.as_pointer, addr) != 1)
return (DNS_R_UNEXPECTED);
mask = 0xff >> (prefixlen % 8);
addr[octets] &= mask;
......@@ -111,12 +111,12 @@ totext_in_a6(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
if (prefixlen != 128) {
octets = prefixlen/8;
memset(&addr, 0, sizeof addr);
memset(addr, 0, sizeof addr);
memcpy(&addr[octets], sr.base, 16 - octets);
mask = 0xff >> (prefixlen % 8);
addr[octets] &= mask;
isc_buffer_available(target, &tr);
if (isc_inet_ntop(AF_INET6, &addr,
if (isc_inet_ntop(AF_INET6, addr,
(char *)tr.base, tr.length) == NULL)
return (DNS_R_NOSPACE);
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: a6_38.h,v 1.1 1999/02/02 04:52:31 marka Exp $ */
/* $Id: a6_38.h,v 1.2 1999/02/06 01:45:11 halley Exp $ */
/* draft-ietf-ipngwg-dns-lookups-03.txt */
......@@ -67,7 +67,7 @@ fromtext_in_a6(dns_rdataclass_t class, dns_rdatatype_t type,
/* octets 0..15 */
RETERR(gettoken(lexer, &token, isc_tokentype_string,
ISC_FALSE));
if (isc_inet_pton(AF_INET6, token.value.as_pointer, &addr) != 1)
if (isc_inet_pton(AF_INET6, token.value.as_pointer, addr) != 1)
return (DNS_R_UNEXPECTED);
mask = 0xff >> (prefixlen % 8);
addr[octets] &= mask;
......@@ -111,12 +111,12 @@ totext_in_a6(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
if (prefixlen != 128) {
octets = prefixlen/8;
memset(&addr, 0, sizeof addr);
memset(addr, 0, sizeof addr);
memcpy(&addr[octets], sr.base, 16 - octets);
mask = 0xff >> (prefixlen % 8);
addr[octets] &= mask;
isc_buffer_available(target, &tr);
if (isc_inet_ntop(AF_INET6, &addr,
if (isc_inet_ntop(AF_INET6, addr,
(char *)tr.base, tr.length) == NULL)
return (DNS_R_NOSPACE);
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: aaaa_28.c,v 1.3 1999/02/02 01:17:48 halley Exp $ */
/* $Id: aaaa_28.c,v 1.4 1999/02/06 01:45:11 halley Exp $ */
/* RFC 1886 */
......@@ -48,7 +48,7 @@ fromtext_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
if (isc_inet_pton(AF_INET6, token.value.as_pointer, &addr) != 1)
if (isc_inet_pton(AF_INET6, token.value.as_pointer, addr) != 1)
return (DNS_R_UNEXPECTED);
isc_buffer_available(target, &region);
if (region.length < 16)
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: aaaa_28.h,v 1.3 1999/02/02 01:17:48 halley Exp $ */
/* $Id: aaaa_28.h,v 1.4 1999/02/06 01:45:11 halley Exp $ */
/* RFC 1886 */
......@@ -48,7 +48,7 @@ fromtext_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
RETERR(gettoken(lexer, &token, isc_tokentype_string, ISC_FALSE));
if (isc_inet_pton(AF_INET6, token.value.as_pointer, &addr) != 1)
if (isc_inet_pton(AF_INET6, token.value.as_pointer, addr) != 1)
return (DNS_R_UNEXPECTED);
isc_buffer_available(target, &region);
if (region.length < 16)
......
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