diff options
Diffstat (limited to 'cpukit/posix/src/mqueuenotify.c')
-rw-r--r-- | cpukit/posix/src/mqueuenotify.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cpukit/posix/src/mqueuenotify.c b/cpukit/posix/src/mqueuenotify.c index 15ae9efb1f..54387a9d5a 100644 --- a/cpukit/posix/src/mqueuenotify.c +++ b/cpukit/posix/src/mqueuenotify.c @@ -70,11 +70,7 @@ int mq_notify( the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location ); switch ( location ) { -#if defined(RTEMS_MULTIPROCESSING) - case OBJECTS_REMOTE: -#endif - case OBJECTS_ERROR: - rtems_set_errno_and_return_minus_one( EBADF ); + case OBJECTS_LOCAL: the_mq = the_mq_fd->Queue; @@ -101,6 +97,13 @@ int mq_notify( _Thread_Enable_dispatch(); return 0; + +#if defined(RTEMS_MULTIPROCESSING) + case OBJECTS_REMOTE: +#endif + case OBJECTS_ERROR: + break; } - return POSIX_BOTTOM_REACHED(); + + rtems_set_errno_and_return_minus_one( EBADF ); } |