1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sema: harmonize sema_post return with rest of API

This commit is contained in:
Martine Lenders 2015-12-26 17:30:35 +01:00 committed by Martine Lenders
parent 54e6163ab3
commit 632c9a2bd0
2 changed files with 2 additions and 1 deletions

View File

@ -133,6 +133,7 @@ static inline int sema_wait(sema_t *sema)
*
* @param[in] sema A semaphore.
*
* @return 0, on success
* @return -EINVAL, if semaphore is invalid.
* @return -EOVERFLOW, if the semaphore's value would overflow.
*/

View File

@ -169,7 +169,7 @@ int sema_post(sema_t *sema)
restoreIRQ(old_state);
}
return 1;
return 0;
}
/** @} */