From 6dbdb96cf9494771959bab414d8ef9ed44dc2e65 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 11 Feb 2008 15:52:39 +0100 Subject: [PATCH] Avoid pointer signedness warnings. --- lib/names.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/names.c b/lib/names.c index 3eec0a4..c7b1abe 100644 --- a/lib/names.c +++ b/lib/names.c @@ -1,7 +1,7 @@ /* * The PCI Library -- ID to Name Translation * - * Copyright (c) 1997--2007 Martin Mares + * Copyright (c) 1997--2008 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -134,7 +134,8 @@ static inline unsigned int id_hash(int cat, u32 id12, u32 id34) static char *id_net_lookup(struct pci_access *a, int cat, int id1, int id2, int id3, int id4) { - byte name[256], dnsname[256], answer[4096], txt[256]; + char name[256], dnsname[256], txt[256]; + byte answer[4096]; const byte *data; int res, i, j, dlen; ns_msg m; -- 2.39.5