diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-12-11 03:57:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-12-11 03:57:12 +0000 |
commit | 0552b9a7ffbf4d1211029fd1f369f4840ef97083 (patch) | |
tree | 831d7b10c46c208e80a742a2731b39bdf6b74a7e | |
parent | 84cc4e7e3e46b975c234d20c4242bb59bc0d42d2 (diff) | |
download | busybox-w32-0552b9a7ffbf4d1211029fd1f369f4840ef97083.tar.gz busybox-w32-0552b9a7ffbf4d1211029fd1f369f4840ef97083.tar.bz2 busybox-w32-0552b9a7ffbf4d1211029fd1f369f4840ef97083.zip |
Eliminate dependancy on kernel header files. Naughty naughty.
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
-Erik
-rw-r--r-- | networking/route.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/route.c b/networking/route.c index d4c65f8cd..8117b0397 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -15,7 +15,7 @@ | |||
15 | * Foundation; either version 2 of the License, or (at | 15 | * Foundation; either version 2 of the License, or (at |
16 | * your option) any later version. | 16 | * your option) any later version. |
17 | * | 17 | * |
18 | * $Id: route.c,v 1.19 2002/11/26 09:02:06 bug1 Exp $ | 18 | * $Id: route.c,v 1.20 2002/12/11 03:57:12 andersen Exp $ |
19 | * | 19 | * |
20 | * displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru> | 20 | * displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru> |
21 | * adjustments by Larry Doolittle <LRDoolittle@lbl.gov> | 21 | * adjustments by Larry Doolittle <LRDoolittle@lbl.gov> |
@@ -28,7 +28,6 @@ | |||
28 | #include "inet_common.h" | 28 | #include "inet_common.h" |
29 | #include <net/route.h> | 29 | #include <net/route.h> |
30 | #include <net/if.h> | 30 | #include <net/if.h> |
31 | #include <linux/param.h> /* HZ */ | ||
32 | #include <stdio.h> | 31 | #include <stdio.h> |
33 | #include <errno.h> | 32 | #include <errno.h> |
34 | #include <fcntl.h> | 33 | #include <fcntl.h> |
@@ -223,7 +222,7 @@ static int INET_setroute(int action, int options, char **args) | |||
223 | #if HAVE_RTF_IRTT | 222 | #if HAVE_RTF_IRTT |
224 | rt.rt_flags |= RTF_IRTT; | 223 | rt.rt_flags |= RTF_IRTT; |
225 | rt.rt_irtt = atoi(*(args - 1)); | 224 | rt.rt_irtt = atoi(*(args - 1)); |
226 | rt.rt_irtt *= (HZ / 100); /* FIXME */ | 225 | rt.rt_irtt *= (sysconf(_SC_CLK_TCK) / 100); /* FIXME */ |
227 | #if 0 /* FIXME: do we need to check anything of this? */ | 226 | #if 0 /* FIXME: do we need to check anything of this? */ |
228 | if (rt.rt_irtt < 1 || rt.rt_irtt > (120 * HZ)) { | 227 | if (rt.rt_irtt < 1 || rt.rt_irtt > (120 * HZ)) { |
229 | error_msg(_("Invalid initial rtt.")); | 228 | error_msg(_("Invalid initial rtt.")); |