diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-01-03 19:39:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-01-03 19:39:17 +0000 |
commit | c1e29c56b8c5322c17af36fb5c754b272ce6eaf5 (patch) | |
tree | 9b1c84cff8738e6832b0d218f42aad494b7ec212 | |
parent | aef699ad4f314deeb71c487c341bf14f4f3a8d77 (diff) | |
download | drakx-c1e29c56b8c5322c17af36fb5c754b272ce6eaf5.tar drakx-c1e29c56b8c5322c17af36fb5c754b272ce6eaf5.tar.gz drakx-c1e29c56b8c5322c17af36fb5c754b272ce6eaf5.tar.bz2 drakx-c1e29c56b8c5322c17af36fb5c754b272ce6eaf5.tar.xz drakx-c1e29c56b8c5322c17af36fb5c754b272ce6eaf5.zip |
(ppp_available) kill dead code, thus reducing diff with upstream ppp
-rw-r--r-- | mdk-stage1/ppp/pppd/sys-linux.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/mdk-stage1/ppp/pppd/sys-linux.c b/mdk-stage1/ppp/pppd/sys-linux.c index 3ab92dfba..beb6a3cc0 100644 --- a/mdk-stage1/ppp/pppd/sys-linux.c +++ b/mdk-stage1/ppp/pppd/sys-linux.c @@ -1903,21 +1903,6 @@ int ppp_available(void) kernel_version = KVERSION(osmaj, osmin, ospatch); fd = open("/dev/ppp", O_RDWR); -#if 0 - if (fd < 0 && errno == ENOENT) { - /* try making it and see if that helps. */ - if (mknod("/dev/ppp", S_IFCHR | S_IRUSR | S_IWUSR, - makedev(108, 0)) >= 0) { - fd = open("/dev/ppp", O_RDWR); - if (fd >= 0) - info("Created /dev/ppp device node"); - else - unlink("/dev/ppp"); /* didn't work, undo the mknod */ - } else if (errno == EEXIST) { - fd = open("/dev/ppp", O_RDWR); - } - } -#endif /* 0 */ if (fd >= 0) { new_style_driver = 1; |