From: Paul Mackerras Date: Tue, 16 Mar 1999 04:00:35 +0000 (+0000) Subject: fix silly mistake X-Git-Tag: ppp-2.4.7~793 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=bcffc4820fca2aba7b91657909bc0cb76f69227e fix silly mistake --- 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); }