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;
}
#include <poll.h>
#include <errno.h>
#include <time.h>
+#include <stdint.h>
#include <tdm_client.h>
#include <tdm_helper.h>
{
int temp1, temp2;
- temp1 = (int)user_data;
+ temp1 = (intptr_t)user_data;
temp2 = get_time_in_millis();
printf("%d ms\n", temp2 - temp1);
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;