X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Fsys-svr4.c;h=e6d3d67f117824e080cd17eb293b36f3278be18d;hb=ee9e29919a9c98b9c9b3805ebe9e975a9d143d73;hp=efaaef02151b783d02224f5a11fa53ba65980a02;hpb=9c9e0653fd77e0524be85f3a653909c5f07aff3f;p=ppp.git diff --git a/pppd/sys-svr4.c b/pppd/sys-svr4.c index efaaef0..e6d3d67 100644 --- a/pppd/sys-svr4.c +++ b/pppd/sys-svr4.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-svr4.c,v 1.25 1999/03/16 02:57:07 paulus Exp $"; +static char rcsid[] = "$Id: sys-svr4.c,v 1.26 1999/03/16 22:53:48 paulus Exp $"; #endif #include @@ -260,7 +260,7 @@ ppp_available() /* * establish_ppp - Turn the serial port into a ppp interface. */ -void +int establish_ppp(fd) int fd; { @@ -290,6 +290,8 @@ establish_ppp(fd) /* Link the serial port under the PPP multiplexor. */ if ((fdmuxid = ioctl(pppfd, I_LINK, fd)) < 0) fatal("Can't link tty to PPP mux: %m"); + + return pppfd; } /* @@ -624,9 +626,10 @@ int fd, on; * in demand mode. Under Solaris 2, we use our existing fd * to the ppp driver. */ -void +int open_ppp_loopback() { + return pppfd; } /*