]> git.sur5r.net Git - openocd/commitdiff
target: Fix shadow issues on Mac
authorEdgar Grimberg <edgar.grimberg@zylin.com>
Mon, 21 Jun 2010 21:04:16 +0000 (23:04 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 22 Jun 2010 06:24:23 +0000 (08:24 +0200)
wait is declared in /usr/include/sys/wait.h

Signed-off-by: Edgar Grimberg <edgar.grimberg@zylin.com>
src/target/target.c

index 9599feca4693bf1191488344660858bff32f5c58..7513346a9a0069368a237db86bd5f5ac8619f2e4 100644 (file)
@@ -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;
        }