X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=7f0e581ccee7fd3c1e0ba24c8ebc3dfe84f77915;hp=3cbc78afee4808e6f58706fe5f8b05380a88e464;hb=bcffc4820fca2aba7b91657909bc0cb76f69227e;hpb=7a4dc0ff500aaa176a41965d8d4ad15a97a70904 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); }