summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/rtems_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_select.c')
-rw-r--r--cpukit/libnetworking/rtems/rtems_select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_select.c b/cpukit/libnetworking/rtems/rtems_select.c
index 7a006095ea..927c07daa6 100644
--- a/cpukit/libnetworking/rtems/rtems_select.c
+++ b/cpukit/libnetworking/rtems/rtems_select.c
@@ -121,7 +121,7 @@ select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct t
int error, timo;
int retval = 0;
rtems_id tid;
- rtems_interval then, now;
+ rtems_interval then = 0, now;
rtems_event_set events;
if (nfds < 0)
@@ -130,7 +130,7 @@ select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct t
timo = tv->tv_sec * hz + tv->tv_usec / tick;
if (timo == 0)
timo = 1;
- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &then);
+ then = rtems_clock_get_ticks_since_boot();
}
else {
timo = 0;
@@ -156,7 +156,7 @@ select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct t
if (error || retval)
break;
if (timo) {
- rtems_clock_get (RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &now);
+ now = rtems_clock_get_ticks_since_boot();
timo -= now - then;
if (timo <= 0)
break;