skin: fix compilation warnings on 64bit host
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 11 Mar 2015 08:04:59 +0000 (17:04 +0900)
committerGiWoong Kim <giwoong.kim@samsung.com>
Wed, 11 Mar 2015 10:37:23 +0000 (19:37 +0900)
Change-Id: I844fb369a50437e8eaceff8babb556a1a297bbb2
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/skin/maruskin_operation.c

index 24027f9dd1d6358fd878c6fbd0a27c02d2cb6cbf..6fde27fc394394425e1ae2c969375412ea1a5d7e 100644 (file)
@@ -621,7 +621,8 @@ void shutdown_qemu_gracefully(unsigned int sec)
         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();
@@ -638,7 +639,7 @@ static void* run_timed_shutdown_thread(void* args)
     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++) {