]> git.ozlabs.org Git - ppp.git/commitdiff
buglet fixes
authorPaul Mackerras <paulus@samba.org>
Tue, 1 Jun 1999 01:43:34 +0000 (01:43 +0000)
committerPaul Mackerras <paulus@samba.org>
Tue, 1 Jun 1999 01:43:34 +0000 (01:43 +0000)
pppd/sys-linux.c
pppd/utils.c

index 0537e49da21b140c916de2c49444bc98d948d40c..436a5f1af66eab217a846c70e7b0e04e44f8b653 100644 (file)
@@ -2402,7 +2402,7 @@ sys_check_options(void)
  */
     if (ipxcp_protent.enabled_flag) {
        struct stat stat_buf;
  */
     if (ipxcp_protent.enabled_flag) {
        struct stat stat_buf;
-        if (path_to_procfs("/net/ipx_interface")
+        if (!path_to_procfs("/net/ipx_interface")
            || lstat (route_buffer, &stat_buf) < 0) {
            error("IPX support is not present in the kernel\n");
            ipxcp_protent.enabled_flag = 0;
            || lstat (route_buffer, &stat_buf) < 0) {
            error("IPX support is not present in the kernel\n");
            ipxcp_protent.enabled_flag = 0;
index 0b1292d29df1f1fd258df1fefaea66c79c264ab3..8c818965406e7b2a3e4ec1a7bc3f4739eb1a92b5 100644 (file)
@@ -17,7 +17,7 @@
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 #ifndef lint
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 #ifndef lint
-static char rcsid[] = "$Id: utils.c,v 1.4 1999/05/12 06:15:33 paulus Exp $";
+static char rcsid[] = "$Id: utils.c,v 1.5 1999/06/01 01:43:34 paulus Exp $";
 #endif
 
 #include <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -41,7 +41,7 @@ static char rcsid[] = "$Id: utils.c,v 1.4 1999/05/12 06:15:33 paulus Exp $";
 #include <sys/socket.h>
 #include <netinet/in.h>
 #ifdef SVR4
 #include <sys/socket.h>
 #include <netinet/in.h>
 #ifdef SVR4
-#include <sys/sysmacros.h>
+#include <sys/mkdev.h>
 #endif
 
 #include "pppd.h"
 #endif
 
 #include "pppd.h"