INFO("shutdown_qemu_gracefully was called\n");
QemuThread thread_id;
qemu_thread_create(&thread_id, "shutdown_thread",
- run_timed_shutdown_thread, (void *)sec, QEMU_THREAD_DETACHED);
+ run_timed_shutdown_thread, (void *)(uintptr_t)sec,
+ QEMU_THREAD_DETACHED);
} else {
INFO("shutdown_qemu_gracefully was called twice\n");
qemu_system_shutdown_request();
send_shutdown_to_emuld();
const int sleep_interval_time = 1000; /* milli-seconds */
- const int timeout_for_shutdown = (const int)args;
+ const int timeout_for_shutdown = (uintptr_t)args;
int i;
for (i = 0; i < timeout_for_shutdown; i++) {