fixed warning
[fw/openocd] / src / target / arm720t.c
index cc45c9e61f2e1ba5ae146946588a1892ca121b89..848cbca5a7056a510b1de67e059760c032adb2b1 100644 (file)
@@ -43,7 +43,7 @@ int arm720t_handle_mw_phys_command(struct command_context_s *cmd_ctx, char *cmd,
 /* forward declarations */
 int arm720t_target_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc, struct target_s *target);
 int arm720t_init_target(struct command_context_s *cmd_ctx, struct target_s *target);
-int arm720t_quit();
+int arm720t_quit(void);
 int arm720t_arch_state(struct target_s *target);
 int arm720t_read_memory(struct target_s *target, u32 address, u32 size, u32 count, u8 *buffer);
 int arm720t_write_memory(struct target_s *target, u32 address, u32 size, u32 count, u8 *buffer);
@@ -382,7 +382,7 @@ int arm720t_soft_reset_halt(struct target_s *target)
                        break;
                }
                /* do not eat all CPU, time out after 1 se*/
-               usleep(100*1000);
+               alive_sleep(100);
        }
        if (i==10)
        {
@@ -423,7 +423,7 @@ int arm720t_init_target(struct command_context_s *cmd_ctx, struct target_s *targ
        
 }
 
-int arm720t_quit()
+int arm720t_quit(void)
 {
        
        return ERROR_OK;