freerdp: fix type build warnings
This commit is contained in:
parent
6505864bcd
commit
c1d727e9cd
@ -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");
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user