fix 64bit build error 38/65538/1
authorBoram Park <boram1288.park@samsung.com>
Mon, 11 Apr 2016 08:34:24 +0000 (17:34 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 11 Apr 2016 10:33:14 +0000 (19:33 +0900)
Change-Id: I19f591063dc4c824aec8599fed8bb0a740debd15

src/tdm_thread.c
tools/tdm_test_client.c

index ec7ce92..534167f 100644 (file)
@@ -216,7 +216,7 @@ tdm_thread_send_cb(tdm_private_loop *private_loop, tdm_thread_cb_base *base)
 
        len = write(private_thread->pipe[1], base, base->length);
        if (len != base->length) {
-               TDM_ERR("write failed (%d != %d): %m", len, base->length);
+               TDM_ERR("write failed (%d != %d): %m", (int)len, base->length);
                return TDM_ERROR_OPERATION_FAILED;
        }
 
index ed88d8a..817ca3e 100644 (file)
@@ -32,6 +32,7 @@ DEALINGS IN THE SOFTWARE.
 #include <poll.h>
 #include <errno.h>
 #include <time.h>
+#include <stdint.h>
 
 #include <tdm_client.h>
 #include <tdm_helper.h>
@@ -53,7 +54,7 @@ _client_vblank_handler(unsigned int sequence, unsigned int tv_sec,
 {
        int temp1, temp2;
 
-       temp1 = (int)user_data;
+       temp1 = (intptr_t)user_data;
        temp2 = get_time_in_millis();
 
        printf("%d ms\n", temp2 - temp1);
@@ -89,7 +90,7 @@ main(int argc, char *argv[])
 
                error = tdm_client_wait_vblank(client, "unknown-0", 1, 0,
                                               _client_vblank_handler,
-                                              (void*)get_time_in_millis());
+                                              (void*)(intptr_t)get_time_in_millis());
                if (error != TDM_CLIENT_ERROR_NONE) {
                        printf("tdm_client_wait_vblank failed\n");
                        goto done;