X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fnames-net.c;h=a1a6e275dd4bcf6c2c4966b4255c6c883dd73420;hb=d00975720cdb4837623c065cb1781f61740a975c;hp=d14949115f35c62c4c24f6c3ad0a96d066f6866d;hpb=a2bf30a4fd407c55e8172e2f6fd158725ccb90b6;p=pciutils.git diff --git a/lib/names-net.c b/lib/names-net.c index d149491..a1a6e27 100644 --- a/lib/names-net.c +++ b/lib/names-net.c @@ -17,6 +17,7 @@ #include #include #include +#include /* * Unfortunately, there are no portable functions for DNS RR parsing, @@ -196,7 +197,7 @@ char res = res_query(dnsname, ns_c_in, ns_t_txt, answer, sizeof(answer)); if (res < 0) { - a->debug("\tfailed, h_errno=%d\n", _res.res_h_errno); + a->debug("\tfailed, h_errno=%d\n", h_errno); return NULL; } if (dns_parse_packet(&ds, answer, res) < 0)