Libc/pthread: Fix return type of pthread_mutexattr_getprotocol
authorVidisha Thapa <thapa.v@samsung.com>
Fri, 21 Jul 2017 09:30:09 +0000 (15:00 +0530)
committerVidisha Thapa <thapa.v@samsung.com>
Mon, 31 Jul 2017 11:07:25 +0000 (16:37 +0530)
commit19b76fe9d1aa9621a227bc979be639f6f60b0f3f
treeee0e7480df9b829b0828b9eb5afd2217b9e56690
parent1e4e96bb9fa129ee92b4ae33c272448353b182c2
Libc/pthread: Fix return type of pthread_mutexattr_getprotocol

Upon successful completion, pthread_mutexattr_getprotocol() shall return 0;
otherwise, an error number shall be returned to indicate the error.
pthread_mutexattr_getprotocol was returning the protocol rather than 0.

Signed-off-by: Vidisha Thapa <thapa.v@samsung.com>
lib/libc/pthread/pthread_mutexattr_getprotocol.c