From 88c74ab115b5135d4d93050596905d6ee573dd1e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 25 Jul 2013 15:10:11 +0200 Subject: score: Merge tod implementation into one file Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS(). --- cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c') diff --git a/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c b/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c index 62046dbb66..3516504a34 100644 --- a/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c +++ b/cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c @@ -257,7 +257,7 @@ do_dhcp_init (struct rtems_bsdnet_ifconfig *ifp) { #if BROADCAST_DELAY /* Wait before sending broadcast. */ - rtems_task_wake_after(TOD_MILLISECONDS_TO_TICKS(BROADCAST_DELAY * 1000)); + rtems_task_wake_after(RTEMS_MILLISECONDS_TO_TICKS(BROADCAST_DELAY * 1000)); #endif printf ("starting dhcp client...\n"); @@ -303,7 +303,7 @@ static void dhcp_monitor_task (rtems_task_argument ifp_arg) must_renew = TRUE; #if NETWORK_DOWN_TIME dhcp_if_down(ifname); - rtems_task_wake_after(TOD_MILLISECONDS_TO_TICKS(NETWORK_DOWN_TIME * 1000)); + rtems_task_wake_after(RTEMS_MILLISECONDS_TO_TICKS(NETWORK_DOWN_TIME * 1000)); dhcp_if_up(ifname); downcount = 0; #endif @@ -311,7 +311,7 @@ static void dhcp_monitor_task (rtems_task_argument ifp_arg) } } - rtems_task_wake_after(TOD_MILLISECONDS_TO_TICKS(1000)); + rtems_task_wake_after(RTEMS_MILLISECONDS_TO_TICKS(1000)); } error_out: -- cgit v1.2.3