rtos: Use 'bool' as return type for detect_rtos()
Change-Id: I91ad0431d44ed94f48d20c4690f8642d66f52a9b Signed-off-by: Marc Schink <openocd-dev@marcschink.de> Reviewed-on: http://openocd.zylin.com/4274 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
This commit is contained in:
committed by
Spencer Oliver
parent
7e64451097
commit
dba9293a89
@@ -244,9 +244,9 @@ static int mqx_is_scheduler_running(
|
||||
}
|
||||
|
||||
/*
|
||||
* API function, return 1 if MQX is present
|
||||
* API function, return true if MQX is present
|
||||
*/
|
||||
static int mqx_detect_rtos(
|
||||
static bool mqx_detect_rtos(
|
||||
struct target *target
|
||||
)
|
||||
{
|
||||
@@ -254,9 +254,9 @@ static int mqx_detect_rtos(
|
||||
(target->rtos->symbols != NULL) &&
|
||||
(target->rtos->symbols[mqx_VAL_mqx_kernel_data].address != 0)
|
||||
) {
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
return 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user