From: Martin Mares Date: Mon, 11 Feb 2008 14:52:39 +0000 (+0100) Subject: Avoid pointer signedness warnings. X-Git-Tag: v3.0.0~6 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6dbdb96cf9494771959bab414d8ef9ed44dc2e65;p=pciutils.git Avoid pointer signedness warnings. --- 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;