X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Fsys-sunos4.c;h=40117422cf9a9e0f9c5798da38a68722966fe447;hb=d3a41a77dbfeaee46fb1f00b66bddd4677e1e00f;hp=b0d0eaaf8ef21149abd7b60b920fead6ae1d65b7;hpb=cb6271cf11b1237286e53124dd7a6ac2e24f6671;p=ppp.git diff --git a/pppd/sys-sunos4.c b/pppd/sys-sunos4.c index b0d0eaa..4011742 100644 --- a/pppd/sys-sunos4.c +++ b/pppd/sys-sunos4.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-sunos4.c,v 1.14 1999/03/16 02:57:07 paulus Exp $"; +static char rcsid[] = "$Id: sys-sunos4.c,v 1.15 1999/03/16 22:53:48 paulus Exp $"; #endif #include @@ -240,7 +240,7 @@ ppp_available() /* * establish_ppp - Turn the serial port into a ppp interface. */ -void +int establish_ppp(fd) int fd; { @@ -262,6 +262,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; } /* @@ -558,12 +560,13 @@ int fd, on; /* * open_loopback - open the device we use for getting packets - * in demand mode. Under Solaris 2, we use our existing fd + * in demand mode. Under SunOS, we use our existing fd * to the ppp driver. */ -void +int open_ppp_loopback() { + return pppfd; } /*