diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-02 10:22:15 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-10-02 10:22:15 +0200 |
commit | f004b2b8dc1fb78eb18b21ba6b50f6c712fd94f8 (patch) | |
tree | 19c85986b72c5a3b867e811975d7439ebb1d18d1 /cpukit/include/rtems/status-checks.h | |
parent | rtems: Add rtems_task_exit() (diff) | |
download | rtems-f004b2b8dc1fb78eb18b21ba6b50f6c712fd94f8.tar.bz2 |
Use rtems_task_exit()
Update #3530.
Update #3533.
Diffstat (limited to 'cpukit/include/rtems/status-checks.h')
-rw-r--r-- | cpukit/include/rtems/status-checks.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/include/rtems/status-checks.h b/cpukit/include/rtems/status-checks.h index 54b045c6a0..94f30209c1 100644 --- a/cpukit/include/rtems/status-checks.h +++ b/cpukit/include/rtems/status-checks.h @@ -188,7 +188,7 @@ extern "C" { #define RTEMS_CHECK_SC_TASK( sc, msg) \ if ((rtems_status_code) (sc) != RTEMS_SUCCESSFUL) { \ RTEMS_SYSLOG_ERROR_WITH_SC( sc, msg); \ - (void) rtems_task_delete( RTEMS_SELF); \ + rtems_task_exit(); \ return; \ } else { \ RTEMS_DEBUG_OK( msg); \ @@ -237,7 +237,7 @@ extern "C" { #define RTEMS_CHECK_RV_TASK( rv, msg) \ if ((int) (rv) < 0) { \ RTEMS_SYSLOG_ERROR_WITH_RV( rv, msg); \ - (void) rtems_task_delete( RTEMS_SELF); \ + rtems_task_exit(); \ return; \ } else { \ RTEMS_DEBUG_OK( msg); \ |