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

[master] silence warning

This commit is contained in:
Evan Hunt
2013-11-18 16:01:39 -08:00
parent 5255b631b1
commit 2667746d5d

View File

@@ -171,7 +171,7 @@ main(int argc, char *argv[]) {
* Get class. * Get class.
*/ */
if (token.type == isc_tokentype_number) { if (token.type == isc_tokentype_number) {
rdclass = token.value.as_ulong; rdclass = (dns_rdataclass_t) token.value.as_ulong;
if (token.value.as_ulong > 0xffffu) { if (token.value.as_ulong > 0xffffu) {
fprintf(stderr, "class value too big %lu\n", fprintf(stderr, "class value too big %lu\n",
token.value.as_ulong); token.value.as_ulong);
@@ -219,7 +219,7 @@ main(int argc, char *argv[]) {
* Get type. * Get type.
*/ */
if (token.type == isc_tokentype_number) { if (token.type == isc_tokentype_number) {
rdtype = token.value.as_ulong; rdtype = (dns_rdatatype_t) token.value.as_ulong;
if (token.value.as_ulong > 0xffffu) { if (token.value.as_ulong > 0xffffu) {
fprintf(stderr, "type value too big %lu\n", fprintf(stderr, "type value too big %lu\n",
token.value.as_ulong); token.value.as_ulong);