diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-25 15:10:11 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-26 11:55:47 +0200 |
commit | 88c74ab115b5135d4d93050596905d6ee573dd1e (patch) | |
tree | 395b852dd384040e20a6f178e913dddccac436bf /cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c | |
parent | score: Create object implementation header (diff) | |
download | rtems-88c74ab115b5135d4d93050596905d6ee573dd1e.tar.bz2 |
score: Merge tod implementation into one file
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_dhcp_failsafe.c | 6 |
1 files changed, 3 insertions, 3 deletions
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: |