From bcffc4820fca2aba7b91657909bc0cb76f69227e Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 16 Mar 1999 04:00:35 +0000 Subject: [PATCH 1/1] fix silly mistake --- pppd/sys-linux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 3cbc78a..7f0e581 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -601,7 +601,7 @@ void set_up_tty(int tty_fd, int local) setdtr(tty_fd, 1); if (tcgetattr(tty_fd, &tios) < 0) { - if (!ok_errno(errno)) + if (!ok_error(errno)) fatal("tcgetattr: %m(%d)", errno); return; } @@ -656,7 +656,7 @@ void set_up_tty(int tty_fd, int local) } if (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0) - if (!ok_errno(errno)) + if (!ok_error(errno)) fatal("tcsetattr: %m"); baud_rate = baud_rate_of(speed); @@ -867,7 +867,7 @@ void ppp_send_config (int unit,int mtu,u_int32_t asyncmap,int pcomp,int accomp) SYSDEBUG ((LOG_DEBUG, "send_config: asyncmap = %lx\n", asyncmap)); if (ioctl(ppp_fd, PPPIOCSASYNCMAP, (caddr_t) &asyncmap) < 0) { - if (!ok_errno(errno)) + if (!ok_error(errno)) fatal("ioctl(PPPIOCSASYNCMAP): %m(%d)", errno); return; } @@ -921,7 +921,7 @@ void ppp_recv_config (int unit,int mru,u_int32_t asyncmap,int pcomp,int accomp) SYSDEBUG ((LOG_DEBUG, "recv_config: asyncmap = %lx\n", asyncmap)); if (ioctl(ppp_fd, PPPIOCSRASYNCMAP, (caddr_t) &asyncmap) < 0) { - if (!ok_errno(errno)) + if (!ok_error(errno)) error("ioctl(PPPIOCSRASYNCMAP): %m(%d)", errno); } -- 2.39.2