summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_ex.c
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-28 01:59:53 +0000
committerdillon <dillon@FreeBSD.org>1999-01-28 01:59:53 +0000
commit9328688fc8b9743439e9dbe6f6364cb0317e387f (patch)
tree4f99904371de94ee7846eb8f747ab1e5a1fa463b /sys/i386/isa/if_ex.c
parentc970e06ccf646c8d420b2216f605eefeef3cdc0d (diff)
downloadFreeBSD-src-9328688fc8b9743439e9dbe6f6364cb0317e387f.zip
FreeBSD-src-9328688fc8b9743439e9dbe6f6364cb0317e387f.tar.gz
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/i386/isa/if_ex.c')
-rw-r--r--sys/i386/isa/if_ex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/if_ex.c b/sys/i386/isa/if_ex.c
index 2508bd7..0b689be 100644
--- a/sys/i386/isa/if_ex.c
+++ b/sys/i386/isa/if_ex.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ex.c,v 1.12 1998/06/07 17:10:30 dfr Exp $
+ * $Id: if_ex.c,v 1.13 1998/10/22 05:58:39 bde Exp $
*/
/*
@@ -476,7 +476,7 @@ void ex_start(struct ifnet *ifp)
outsw(iobase + IO_PORT_REG, tmp16, 1);
}
outsw(iobase + IO_PORT_REG, mtod(m, caddr_t) + i, (m->m_len - i) / 2);
- if (i = (m->m_len - i) & 1)
+ if ((i = (m->m_len - i) & 1) != 0)
tmp16[0] = *(mtod(m, caddr_t) + m->m_len - 1);
}
if (i)
OpenPOWER on IntegriCloud