From 52182725b09932fb0fcdd6e1d2c018a965e3c599 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 28 Jan 2005 22:35:17 +0000 Subject: fix merge errors from r1.18; tested hshoexer & henning; ok henning@ dlg@ --- sys/dev/usb/uplcom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/uplcom.c b/sys/dev/usb/uplcom.c index 2aec05ef999..d926fe9e54a 100644 --- a/sys/dev/usb/uplcom.c +++ b/sys/dev/usb/uplcom.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uplcom.c,v 1.20 2005/01/16 06:18:12 dlg Exp $ */ +/* $OpenBSD: uplcom.c,v 1.21 2005/01/28 22:35:16 djm Exp $ */ /* $NetBSD: uplcom.c,v 1.29 2002/09/23 05:51:23 simonb Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -524,7 +524,7 @@ uplcom_dtr(struct uplcom_softc *sc, int onoff) if (sc->sc_dtr != -1 && !sc->sc_dtr == !onoff) return; - sc->sc_dtr = !onoff; + sc->sc_dtr = !!onoff; uplcom_set_line_state(sc); } @@ -534,10 +534,10 @@ uplcom_rts(struct uplcom_softc *sc, int onoff) { DPRINTF(("uplcom_rts: onoff=%d\n", onoff)); - if (sc->sc_rts == -1 && !sc->sc_dtr == !onoff) + if (sc->sc_rts == -1 && !sc->sc_rts == !onoff) return; - sc->sc_rts = !onoff; + sc->sc_rts = !!onoff; uplcom_set_line_state(sc); } -- cgit v1.2.3