Small fixes

This commit is contained in:
Friedrich Schöller 2013-05-22 02:55:22 +02:00
parent 1be922591e
commit 3a39facc56
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ typedef ip IpHeader;
using namespace std;
#ifdef WIN32
void winsystem(char *cmd)
static void winsystem(char *cmd)
{
STARTUPINFO info = { sizeof(info) };
PROCESS_INFORMATION processInfo;

View File

@ -176,7 +176,7 @@ static __stdcall DWORD reader_thread(LPVOID ptr)
{
if (GetLastError() != ERROR_IO_PENDING)
{
syslog(LOG_ERR, "error reading tap: %s", winerror(GetLastError()));
syslog(LOG_ERR, "error reading from tap adapter: %s", winerror(GetLastError()));
return 1;
}
@ -190,7 +190,7 @@ static __stdcall DWORD reader_thread(LPVOID ptr)
if (!GetOverlappedResult(adapter_info->adapter_handle, &overlapped, &len, true))
{
syslog(LOG_ERR, "error waiting for operation to complete: %s", winerror(GetLastError()));
syslog(LOG_ERR, "error getting tap adapter reading result: %s", winerror(GetLastError()));
return 1;
}
}
@ -301,7 +301,7 @@ bool tun_set_ip(int fd, uint32_t local, uint32_t network, uint32_t netmask)
if (!DeviceIoControl(adapter_info->adapter_handle, TAP_WIN_IOCTL_CONFIG_TUN,
&addresses, sizeof(addresses), &addresses, sizeof(addresses), &len, NULL))
{
error("configuring tap addresses", winerror(GetLastError()));
error("configuring tap addresses: %s", winerror(GetLastError()));
return false;
}