diff options
author | 2008-02-26 09:52:38 +0000 | |
---|---|---|
committer | 2008-02-26 09:52:38 +0000 | |
commit | dc7595af01a40afb817d632390b296e9047c9e90 (patch) | |
tree | f2a8f19c44e9843a51b2601588717432054bb061 | |
parent | - Add lii(4) commented out to the amd64 configs (diff) | |
download | wireguard-openbsd-dc7595af01a40afb817d632390b296e9047c9e90.tar.xz wireguard-openbsd-dc7595af01a40afb817d632390b296e9047c9e90.zip |
Allow a range of baud rates in a manner similiar to tip/cu,
fixes PR 5734 as tested by Sergey Prysiazhnyi <apelsin@atmnis.com>.
Fix suggested by and ok deraadt@, "diff is correct" miod@
-rw-r--r-- | usr.sbin/ppp/ppp/defs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ppp/defs.c b/usr.sbin/ppp/ppp/defs.c index 693fac08ee0..c266b6a29d9 100644 --- a/usr.sbin/ppp/ppp/defs.c +++ b/usr.sbin/ppp/ppp/defs.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: defs.c,v 1.24 2002/05/16 01:13:39 brian Exp $ + * $OpenBSD: defs.c,v 1.25 2008/02/26 09:52:38 jsg Exp $ */ @@ -264,7 +264,7 @@ SpeedToInt(speed_t speed) return sp->nspeed; } } - return 0; + return ((int)speed); } speed_t @@ -277,7 +277,7 @@ IntToSpeed(int nspeed) return sp->speed; } } - return B0; + return ((speed_t)nspeed); } char * |