]> git.sur5r.net Git - openocd/blobdiff - src/svf/svf.c
command_handler_t: make argc unsigned
[openocd] / src / svf / svf.c
index 76b067047e7fb2afbfc88ac5e45dee6372f16c8b..8f2ee80c6ec9d95cee57376e38d36d0292049766 100644 (file)
@@ -304,7 +304,7 @@ int svf_add_statemove(tap_state_t state_to)
 COMMAND_HANDLER(handle_svf_command)
 {
 #define SVF_NUM_OF_OPTIONS                     1
-       int command_num = 0, i;
+       int command_num = 0;
        int ret = ERROR_OK;
        long long time_ago;
 
@@ -316,7 +316,7 @@ COMMAND_HANDLER(handle_svf_command)
 
        // parse variant
        svf_quiet = 0;
-       for (i = 1; i < argc; i++)
+       for (unsigned i = 1; i < argc; i++)
        {
                if (!strcmp(args[i], "quiet"))
                {