]> git.ozlabs.org Git - ppp.git/commitdiff
fix silly mistake
authorPaul Mackerras <paulus@samba.org>
Tue, 16 Mar 1999 04:00:35 +0000 (04:00 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 16 Mar 1999 04:00:35 +0000 (04:00 +0000)
pppd/sys-linux.c

index 3cbc78afee4808e6f58706fe5f8b05380a88e464..7f0e581ccee7fd3c1e0ba24c8ebc3dfe84f77915 100644 (file)
@@ -601,7 +601,7 @@ void set_up_tty(int tty_fd, int local)
 
     setdtr(tty_fd, 1);
     if (tcgetattr(tty_fd, &tios) < 0) {
 
     setdtr(tty_fd, 1);
     if (tcgetattr(tty_fd, &tios) < 0) {
-       if (!ok_errno(errno))
+       if (!ok_error(errno))
            fatal("tcgetattr: %m(%d)", errno);
        return;
     }
            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 (tcsetattr(tty_fd, TCSAFLUSH, &tios) < 0)
-       if (!ok_errno(errno))
+       if (!ok_error(errno))
            fatal("tcsetattr: %m");
     
     baud_rate    = baud_rate_of(speed);
            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) {
        
     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;
     }
            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) {
 
     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);
     }
 
            error("ioctl(PPPIOCSRASYNCMAP): %m(%d)", errno);
     }