]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] silence warning
authorEvan Hunt <each@isc.org>
Tue, 19 Nov 2013 00:01:39 +0000 (16:01 -0800)
committerEvan Hunt <each@isc.org>
Tue, 19 Nov 2013 00:01:39 +0000 (16:01 -0800)
bin/tools/named-rrchecker.c

index 629e67c05860399117372ba8805e147530002fa1..8844062a6b0b35b3ddc5d0b3201391ae55016f8a 100644 (file)
@@ -171,7 +171,7 @@ main(int argc, char *argv[]) {
                 * Get class.
                 */
                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) {
                                fprintf(stderr, "class value too big %lu\n",
                                        token.value.as_ulong);
@@ -219,7 +219,7 @@ main(int argc, char *argv[]) {
                 * Get type.
                 */
                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) {
                                fprintf(stderr, "type value too big %lu\n",
                                        token.value.as_ulong);