From 17879f4750a2bc0d556c8cd1d0f6715b127d681a Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 18 Nov 1999 19:43:13 +0000 Subject: + Debuged to the point that you could open, unlink and close a semaphore. but all paths have not been checked, yet. --- cpukit/posix/src/mqueueunlink.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit/posix/src/mqueueunlink.c') diff --git a/cpukit/posix/src/mqueueunlink.c b/cpukit/posix/src/mqueueunlink.c index 4a884f7b82..421b91543c 100644 --- a/cpukit/posix/src/mqueueunlink.c +++ b/cpukit/posix/src/mqueueunlink.c @@ -43,8 +43,7 @@ int mq_unlink( Objects_Locations location; status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id ); - - if ( !status ) + if ( status != 0 ) set_errno_and_return_minus_one( status ); the_mq = _POSIX_Message_queue_Get( the_mq_id, &location ); -- cgit v1.2.3