freerdp: fix type build warnings

This commit is contained in:
Marc-André Moreau 2014-05-09 15:44:49 -04:00
parent 6505864bcd
commit c1d727e9cd
3 changed files with 6 additions and 6 deletions

View File

@ -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); layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_STANDARD);
printf("\nKeyboard Layouts\n"); printf("\nKeyboard Layouts\n");
for (i = 0; layouts[i].code; i++) 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); free(layouts);
layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_VARIANT); layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_VARIANT);
printf("\nKeyboard Layout Variants\n"); printf("\nKeyboard Layout Variants\n");
for (i = 0; layouts[i].code; i++) 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); free(layouts);
layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_IME); layouts = freerdp_keyboard_get_layouts(RDP_KEYBOARD_LAYOUT_TYPE_IME);
printf("\nKeyboard Input Method Editors (IMEs)\n"); printf("\nKeyboard Input Method Editors (IMEs)\n");
for (i = 0; layouts[i].code; i++) 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); free(layouts);
printf("\n"); printf("\n");

View File

@ -425,7 +425,7 @@ void reg_print_value(Reg* reg, RegVal* value)
if (value->type == REG_DWORD) 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) else if (value->type == REG_SZ)
{ {

View File

@ -457,7 +457,7 @@ DWORD WaitForSingleObject(HANDLE hHandle, DWORD dwMilliseconds)
} }
else else
{ {
fprintf(stderr, "WaitForSingleObject: unknown handle type %d\n", Type); fprintf(stderr, "WaitForSingleObject: unknown handle type %d\n", (int) Type);
} }
return WAIT_OBJECT_0; return WAIT_OBJECT_0;
@ -549,7 +549,7 @@ DWORD WaitForMultipleObjects(DWORD nCount, const HANDLE* lpHandles, BOOL bWaitAl
} }
else else
{ {
fprintf(stderr, "WaitForMultipleObjects: unknown handle type %d\n", Type); fprintf(stderr, "WaitForMultipleObjects: unknown handle type %d\n", (int) Type);
return WAIT_FAILED; return WAIT_FAILED;
} }