[BusyBox-cvs] busybox/networking route.c,1.19,1.20

Erik Andersen andersen at codepoet.org
Wed Dec 11 03:57:16 UTC 2002


Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv9670/networking

Modified Files:
	route.c 
Log Message:
Eliminate dependancy on kernel header files.  Naughty naughty.
Using linux kernel headers is a Bad Thing(tm) and should be
punished.
 -Erik


Index: route.c
===================================================================
RCS file: /var/cvs/busybox/networking/route.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- route.c	26 Nov 2002 09:02:06 -0000	1.19
+++ route.c	11 Dec 2002 03:57:12 -0000	1.20
@@ -28,7 +28,6 @@
 #include "inet_common.h"
 #include <net/route.h>
 #include <net/if.h>
-#include <linux/param.h>	/* HZ */
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -223,7 +222,7 @@
 #if HAVE_RTF_IRTT
 			rt.rt_flags |= RTF_IRTT;
 			rt.rt_irtt = atoi(*(args - 1));
-			rt.rt_irtt *= (HZ / 100);	/* FIXME */
+			rt.rt_irtt *= (sysconf(_SC_CLK_TCK) / 100);	/* FIXME */
 #if 0					/* FIXME: do we need to check anything of this? */
 			if (rt.rt_irtt < 1 || rt.rt_irtt > (120 * HZ)) {
 				error_msg(_("Invalid initial rtt."));




More information about the busybox-cvs mailing list