[BusyBox-cvs] busybox/networking/libiproute utils.c,1.4,1.5

Erik Andersen andersen at codepoet.org
Wed Feb 12 10:56:56 UTC 2003


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

Modified Files:
	utils.c 
Log Message:
Don't use HZ -- use sysconf(_SC_CLK_TCK)


Index: utils.c
===================================================================
RCS file: /var/cvs/busybox/networking/libiproute/utils.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- utils.c	16 Dec 2002 07:37:21 -0000	1.4
+++ utils.c	12 Feb 2003 10:56:53 -0000	1.5
@@ -16,6 +16,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include <arpa/inet.h>
 
 #include "utils.h"
@@ -316,7 +317,7 @@
 	}
 	if (hz)
 		return hz;
-	return HZ;
+	return sysconf(_SC_CLK_TCK);
 }
 
 const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen)




More information about the busybox-cvs mailing list