diff --git a/bt-host.c b/bt-host.c index 042a55e47e6a10079df838f5aa964be2a209633a..3c7b270dffc47394c4b9ac712dd0fcf322f2c76d 100644 --- a/bt-host.c +++ b/bt-host.c @@ -200,7 +200,7 @@ struct HCIInfo *bt_host_hci(const char *id) #else struct HCIInfo *bt_host_hci(const char *id) { - fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n", errno); + fprintf(stderr, "qemu: bluetooth passthrough not supported (yet)\n"); return 0; } diff --git a/exec.c b/exec.c index ef1072b6dd63c69a7ad568759c1f401c3986d464..1edc737da580dbbdd73642f351ce368f3bff6258 100644 --- a/exec.c +++ b/exec.c @@ -234,7 +234,6 @@ static void page_init(void) #ifdef _WIN32 { SYSTEM_INFO system_info; - DWORD old_protect; GetSystemInfo(&system_info); qemu_real_host_page_size = system_info.dwPageSize; diff --git a/tap-win32.c b/tap-win32.c index bfec14578a51c23286215d3f53c018372c60d67e..299b4b3225779e6fc3e7162d1f176b222c6fec53 100644 --- a/tap-win32.c +++ b/tap-win32.c @@ -77,7 +77,7 @@ // Compile time configuration //====================== -//#define DEBUG_TAP_WIN32 1 +//#define DEBUG_TAP_WIN32 #define TUN_ASYNCHRONOUS_WRITES 1 @@ -509,7 +509,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param) result = GetOverlappedResult( overlapped->handle, &overlapped->read_overlapped, &read_size, FALSE); if (!result) { -#if DEBUG_TAP_WIN32 +#ifdef DEBUG_TAP_WIN32 LPVOID lpBuffer; dwError = GetLastError(); FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, @@ -520,7 +520,7 @@ static DWORD WINAPI tap_win32_thread_entry(LPVOID param) #endif } } else { -#if DEBUG_TAP_WIN32 +#ifdef DEBUG_TAP_WIN32 LPVOID lpBuffer; FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, dwError, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),