Use enum for target_register_timer_callback()
[openocd.git] / src / target / openrisc / jsp_server.c
index 6cd53f4..6fb764a 100644 (file)
@@ -101,7 +101,8 @@ static int jsp_new_connection(struct connection *connection)
 
        jsp_service->connection = connection;
 
-       int retval = target_register_timer_callback(&jsp_poll_read, 1, 1, jsp_service);
+       int retval = target_register_timer_callback(&jsp_poll_read, 1,
+               TARGET_TIMER_TYPE_PERIODIC, jsp_service);
        if (ERROR_OK != retval)
                return retval;