]> git.sur5r.net Git - openocd/blobdiff - src/target/arm7_9_common.c
Fix usage of timeval_ms()
[openocd] / src / target / arm7_9_common.c
index 6ee2b9218acf69735c47669a69d69805225f2795..c1d5c79445c8b14aa8ad14f7c57df42dd9c68032 100644 (file)
@@ -634,8 +634,8 @@ int arm7_9_execute_sys_speed(struct target *target)
        if (retval != ERROR_OK)
                return retval;
 
-       long long then = timeval_ms();
-       int timeout;
+       int64_t then = timeval_ms();
+       bool timeout;
        while (!(timeout = ((timeval_ms()-then) > 1000))) {
                /* read debug status register */
                embeddedice_read_reg(dbg_stat);