From: Martin Mares Date: Wed, 13 Feb 2008 19:26:14 +0000 (+0100) Subject: Unify usage of u8 vs. byte. X-Git-Tag: v3.0.0~1^2~19 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=25cc4350661290538bdc0eb9932600309fd603f3;p=pciutils.git Unify usage of u8 vs. byte. --- diff --git a/lib/names-net.c b/lib/names-net.c index 9de73a7..d149491 100644 --- a/lib/names-net.c +++ b/lib/names-net.c @@ -36,19 +36,19 @@ enum dns_section { struct dns_state { u16 counts[DNS_NUM_SECTIONS]; - u8 *sections[DNS_NUM_SECTIONS+1]; - u8 *sec_ptr, *sec_end; + byte *sections[DNS_NUM_SECTIONS+1]; + byte *sec_ptr, *sec_end; /* Result of dns_parse_rr(): */ u16 rr_type; u16 rr_class; u32 rr_ttl; u16 rr_len; - u8 *rr_data; + byte *rr_data; }; -static u8 * -dns_skip_name(u8 *p, u8 *end) +static byte * +dns_skip_name(byte *p, byte *end) { while (p < end) { @@ -71,9 +71,9 @@ dns_skip_name(u8 *p, u8 *end) } static int -dns_parse_packet(struct dns_state *s, u8 *p, unsigned int plen) +dns_parse_packet(struct dns_state *s, byte *p, unsigned int plen) { - u8 *end = p + plen; + byte *end = p + plen; unsigned int i, j, x, len; #if 0