mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
target: Fix shadow issues on Mac
wait is declared in /usr/include/sys/wait.h Signed-off-by: Edgar Grimberg <edgar.grimberg@zylin.com>
This commit is contained in:
committed by
Øyvind Harboe
parent
bef497aeb0
commit
bf8d954352
@@ -2135,11 +2135,11 @@ COMMAND_HANDLER(handle_halt_command)
|
||||
|
||||
if (CMD_ARGC == 1)
|
||||
{
|
||||
unsigned wait;
|
||||
retval = parse_uint(CMD_ARGV[0], &wait);
|
||||
unsigned wait_local;
|
||||
retval = parse_uint(CMD_ARGV[0], &wait_local);
|
||||
if (ERROR_OK != retval)
|
||||
return ERROR_COMMAND_SYNTAX_ERROR;
|
||||
if (!wait)
|
||||
if (!wait_local)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user