openbsd-ports/sysutils/pciutils/patches/patch-lib_names-net_c
gonzalo 52f6e3feb0 This is a little update for pciutils to 3.1.9 with some changes:
* Whereever we mention the PCI ID database, we now refer to
  http://pci-ids.ucw.cz/ and the sf.net site is mentioned only
  as a mirror. This includes update-pciids.
* Decode PCIe Gen 3 speeds and link status fields.
* Various minor bug fixes.
* Updated pci.ids to the today's snapshot of the database.

While here, zap some white spaces, GROFF is not needed and add some mirrors.

Tested on i386.

Ok matthieu@ (maintainer) aja@
2012-07-11 18:17:52 +00:00

22 lines
789 B
Plaintext

$OpenBSD: patch-lib_names-net_c,v 1.2 2012/07/11 18:17:52 gonzalo Exp $
--- lib/names-net.c.orig Fri Jan 7 18:04:28 2011
+++ lib/names-net.c Fri Jun 29 10:19:48 2012
@@ -194,7 +194,7 @@ char
resolver_inited = 1;
res_init();
}
- res = res_query(dnsname, ns_c_in, ns_t_txt, answer, sizeof(answer));
+ res = res_query(dnsname, C_IN, T_TXT, answer, sizeof(answer));
if (res < 0)
{
a->debug("\tfailed, h_errno=%d\n", h_errno);
@@ -208,7 +208,7 @@ char
dns_init_section(&ds, DNS_SEC_ANSWER);
while (dns_parse_rr(&ds) > 0)
{
- if (ds.rr_class != ns_c_in || ds.rr_type != ns_t_txt)
+ if (ds.rr_class != C_IN || ds.rr_type != T_TXT)
{
a->debug("\tUnexpected RR in answer: class %d, type %d\n", ds.rr_class, ds.rr_type);
continue;