]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/sys-aix4.c
make establish_ppp and open_ppp_loopback return the correct fd
[ppp.git] / pppd / sys-aix4.c
index 7de3ff60d53894ba3a4ee0ae7be859aa8914b196..9c92e3ffb565126a50cf68e6d4bc830285d20b1d 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: sys-aix4.c,v 1.16 1999/03/16 02:57:05 paulus Exp $";
+static char rcsid[] = "$Id: sys-aix4.c,v 1.17 1999/03/16 22:53:46 paulus Exp $";
 #endif
 
 /*
@@ -183,7 +183,7 @@ ppp_available()
 /*
  * establish_ppp - Turn the serial port into a ppp interface.
  */
-void
+int
 establish_ppp(fd)
     int fd;
 {
@@ -242,6 +242,8 @@ establish_ppp(fd)
        || fcntl(fd, F_SETFL, initfdflags | O_NONBLOCK) == -1) {
        warn("Couldn't set device to non-blocking mode: %m");
     }
+
+    return fd;
 }
 
 /*