diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-15 11:30:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-01-15 11:30:13 +0100 |
commit | ac6e8c404f92a70df6f2293d87aa8fa04a51717e (patch) | |
tree | c140281aee3c767e172838b771ff6ba4225d6479 /cpukit/libnetworking | |
parent | bsps/powerpc: Fix conditional compilation (diff) | |
download | rtems-ac6e8c404f92a70df6f2293d87aa8fa04a51717e.tar.bz2 |
libnetworking: Simplify sbwait()
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_glue.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c index 897b868291..4c90a98a75 100644 --- a/cpukit/libnetworking/rtems/rtems_glue.c +++ b/cpukit/libnetworking/rtems/rtems_glue.c @@ -461,19 +461,9 @@ sbwait(struct sockbuf *sb) sb->sb_flags |= SB_WAIT; /* - * Release the network semaphore. - */ - rtems_bsdnet_semaphore_release (); - - /* * Wait for the wakeup event. */ - sc = rtems_event_system_receive (SBWAIT_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, sb->sb_timeo, &events); - - /* - * Reobtain the network semaphore. - */ - rtems_bsdnet_semaphore_obtain (); + sc = rtems_bsdnet_event_receive (SBWAIT_EVENT, RTEMS_EVENT_ANY | RTEMS_WAIT, sb->sb_timeo, &events); /* * Return the status of the wait. |