Change-Id: I19f591063dc4c824aec8599fed8bb0a740debd15
len = write(private_thread->pipe[1], base, base->length);
if (len != base->length) {
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;
}
return TDM_ERROR_OPERATION_FAILED;
}
#include <poll.h>
#include <errno.h>
#include <time.h>
#include <poll.h>
#include <errno.h>
#include <time.h>
#include <tdm_client.h>
#include <tdm_helper.h>
#include <tdm_client.h>
#include <tdm_helper.h>
- temp1 = (int)user_data;
+ temp1 = (intptr_t)user_data;
temp2 = get_time_in_millis();
printf("%d ms\n", temp2 - temp1);
temp2 = get_time_in_millis();
printf("%d ms\n", temp2 - temp1);
error = tdm_client_wait_vblank(client, "unknown-0", 1, 0,
_client_vblank_handler,
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;
if (error != TDM_CLIENT_ERROR_NONE) {
printf("tdm_client_wait_vblank failed\n");
goto done;