static const char* defaultDesktopName()
{
- size_t host_max = sysconf(_SC_HOST_NAME_MAX);
+ long host_max = sysconf(_SC_HOST_NAME_MAX);
if (host_max < 0)
return "";
if (pwent == NULL)
return "";
- size_t len = snprintf(NULL, 0, "%s@%s", pwent->pw_name, hostname.data());
+ int len = snprintf(NULL, 0, "%s@%s", pwent->pw_name, hostname.data());
if (len < 0)
return "";
}
// Layout independent keys
-static const int vkey_map[][3] = {
+static const UINT vkey_map[][3] = {
{ VK_CANCEL, NoSymbol, XK_Break },
{ VK_BACK, XK_BackSpace, NoSymbol },
{ VK_TAB, XK_Tab, NoSymbol },
// Layout dependent keys, but without useful symbols
// Japanese
-static const int vkey_map_jp[][3] = {
+static const UINT vkey_map_jp[][3] = {
{ VK_KANA, XK_Hiragana_Katakana, NoSymbol },
{ VK_KANJI, XK_Kanji, NoSymbol },
{ VK_OEM_ATTN, XK_Eisu_toggle, NoSymbol },
};
// Korean
-static const int vkey_map_ko[][3] = {
+static const UINT vkey_map_ko[][3] = {
{ VK_HANGUL, XK_Hangul, NoSymbol },
{ VK_HANJA, XK_Hangul_Hanja, NoSymbol },
};
-static int lookup_vkey_map(UINT vkey, int extended, const int map[][3], size_t size)
+static int lookup_vkey_map(UINT vkey, int extended, const UINT map[][3], size_t size)
{
size_t i;