diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-28 01:59:53 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-28 01:59:53 +0000 |
commit | 9328688fc8b9743439e9dbe6f6364cb0317e387f (patch) | |
tree | 4f99904371de94ee7846eb8f747ab1e5a1fa463b /sys/i386/isa/if_ed.c | |
parent | c970e06ccf646c8d420b2216f605eefeef3cdc0d (diff) | |
download | FreeBSD-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_ed.c')
-rw-r--r-- | sys/i386/isa/if_ed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c index 9133a48..e7bab24 100644 --- a/sys/i386/isa/if_ed.c +++ b/sys/i386/isa/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 */ |