From c1d727e9cd7b6ff67d9f7c5de4f623b22f3e4925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andre=CC=81=20Moreau?= Date: Fri, 9 May 2014 15:44:49 -0400 Subject: [PATCH] freerdp: fix type build warnings --- client/common/cmdline.c | 6 +++--- winpr/libwinpr/registry/registry_reg.c | 2 +- winpr/libwinpr/synch/wait.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/common/cmdline.c b/client/common/cmdline.c index d26206f49..109db3138 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -1087,19 +1087,19 @@ int freerdp_client_settings_command_line_status_print(rdpSettings* settings, int layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_STANDARD); printf("\nKeyboard Layouts\n"); for (i = 0; layouts[i].code; i++) - printf("0x%08X\t%s\n", layouts[i].code, layouts[i].name); + printf("0x%08X\t%s\n", (int) layouts[i].code, layouts[i].name); free(layouts); layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_VARIANT); printf("\nKeyboard Layout Variants\n"); for (i = 0; layouts[i].code; i++) - printf("0x%08X\t%s\n", layouts[i].code, layouts[i].name); + printf("0x%08X\t%s\n", (int) layouts[i].code, layouts[i].name); free(layouts); layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_IME); printf("\nKeyboard Input Method Editors (IMEs)\n"); for (i = 0; layouts[i].code; i++) - printf("0x%08X\t%s\n", layouts[i].code, layouts[i].name); + printf("0x%08X\t%s\n", (int) layouts[i].code, layouts[i].name); free(layouts); printf("\n"); diff --git a/winpr/libwinpr/registry/registry_reg.c b/winpr/libwinpr/registry/registry_reg.c index e7122c04f..dafee6ca1 100644 --- a/winpr/libwinpr/registry/registry_reg.c +++ b/winpr/libwinpr/registry/registry_reg.c @@ -425,7 +425,7 @@ void reg_print_value(Reg* reg, RegVal* value) if (value->type == REG_DWORD) { - fprintf(stderr, "dword:%08X\n", value->data.dword); + fprintf(stderr, "dword:%08X\n", (int) value->data.dword); } else if (value->type == REG_SZ) { diff --git a/winpr/libwinpr/synch/wait.c b/winpr/libwinpr/synch/wait.c index f74aa150d..7a4d32a0d 100644 --- a/winpr/libwinpr/synch/wait.c +++ b/winpr/libwinpr/synch/wait.c @@ -457,7 +457,7 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds) } else { - fprintf(stderr, "WaitForSingleObject: unknown handle type %d\n", Type); + fprintf(stderr, "WaitForSingleObject: unknown handle type %d\n", (int) Type); } return WAIT_OBJECT_0; @@ -549,7 +549,7 @@ DWORD WaitForMultipleObjects(DWORD nCount, const HANDLE* lpHandles, BOOL bWaitAl } else { - fprintf(stderr, "WaitForMultipleObjects: unknown handle type %d\n", Type); + fprintf(stderr, "WaitForMultipleObjects: unknown handle type %d\n", (int) Type); return WAIT_FAILED; }