From 0a5e03dda5108aa95d11b714c83217c28a147f6e Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 28 Jan 1999 01:59:53 +0000 Subject: Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile --- sys/dev/ed/if_ed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/ed') diff --git a/sys/dev/ed/if_ed.c b/sys/dev/ed/if_ed.c index 9133a485e758..e7bab24448a9 100644 --- a/sys/dev/ed/if_ed.c +++ b/sys/dev/ed/if_ed.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ed.c,v 1.147 1998/12/13 23:00:48 eivind Exp $ + * $Id: if_ed.c,v 1.148 1999/01/19 00:21:38 peter Exp $ */ /* @@ -3211,7 +3211,7 @@ ed_hpp_write_mbufs(struct ed_softc *sc, struct mbuf *m, int dst) len &= 1; } /* save last byte if needed */ - if (wantbyte = (len == 1)) + if ((wantbyte = (len == 1)) != 0) savebyte[0] = *data; } m = m->m_next; /* to next mbuf */ @@ -3247,7 +3247,7 @@ ed_hpp_write_mbufs(struct ed_softc *sc, struct mbuf *m, int dst) data += (len & ~1); len &= 1; } - if (wantbyte = (len == 1)) + if ((wantbyte = (len == 1)) != 0) savebyte[0] = *data; } /* if len != 0 */ -- cgit v1.3