diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-03-25 14:35:19 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-03-25 14:35:19 +0000 |
commit | 83558494fbb1b06085bf588e71c6dbcea8ad6dea (patch) | |
tree | b9e5b572d4f77b99d047217cd0433da530e9fe41 /epan/addr_resolv.c | |
parent | 0314bd1c1bae5919d3bcaa92bf9726f7abf3a9be (diff) | |
download | wireshark-83558494fbb1b06085bf588e71c6dbcea8ad6dea.tar.gz |
Fix compilation with C++ warnings enabled: use enum values instead of raw
numbers in adns_init() and adns_submit().
(I haven't checked how long these enums have been there; hopefully for a long
time.)
svn path=/trunk/; revision=48549
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r-- | epan/addr_resolv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c index b5ec5dddb7..c75b6f0ea3 100644 --- a/epan/addr_resolv.c +++ b/epan/addr_resolv.c @@ -2537,7 +2537,7 @@ host_name_lookup_init(void) { /* XXX - Any flags we should be using? */ /* XXX - We could provide config settings for DNS servers, and pass them to ADNS with adns_init_strcfg */ - if (adns_init(&ads, 0, 0 /*0=>stderr*/) != 0) { + if (adns_init(&ads, adns_if_none, 0 /*0=>stderr*/) != 0) { /* * XXX - should we report the error? I'm assuming that some crashes * reported on a Windows machine with TCP/IP not configured are due @@ -2657,7 +2657,7 @@ host_name_lookup_process(void) { g_snprintf(addr_str, sizeof addr_str, "%u.%u.%u.%u.in-addr.arpa.", addr_bytes[3], addr_bytes[2], addr_bytes[1], addr_bytes[0]); /* XXX - what if it fails? */ - adns_submit (ads, addr_str, adns_r_ptr, 0, NULL, &almsg->query); + adns_submit (ads, addr_str, adns_r_ptr, adns_qf_none, NULL, &almsg->query); almsg->submitted = TRUE; async_dns_in_flight++; } |