From d3d03f736de739aa7394e2de7cc3a46a3fd5e390 Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Sat, 13 May 2000 20:34:55 +0000 Subject: [PATCH] Silence IRIX warning: "name.c", line 201: remark(1552): variable "byte" was set but never used --- lib/dns/name.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/dns/name.c b/lib/dns/name.c index 8a870e9db2..5196341f6b 100644 --- a/lib/dns/name.c +++ b/lib/dns/name.c @@ -198,13 +198,12 @@ get_bit(unsigned char *array, unsigned int index) { static void set_bit(unsigned char *array, unsigned int index, unsigned int bit) { - unsigned int byte, shift, mask; + unsigned int shift, mask; - byte = array[index / 8]; shift = 7 - (index % 8); mask = 1 << shift; - if (bit) + if (bit != 0) array[index / 8] |= mask; else array[index / 8] &= (~mask & 0xFF); @@ -723,7 +722,9 @@ dns_name_equal(dns_name_t *name1, dns_name_t *name2) { return (ISC_FALSE); if (count == 0) count = 256; - /* number of bytes */ + /* + * Number of bytes. + */ count = (count + 7) / 8; while (count > 0) { count--;