mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-27 17:17:22 -04:00
[master] silence warning
This commit is contained in:
parent
5255b631b1
commit
2667746d5d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue