1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-12-26 18:19:53 +03:00

Remove "CHAR", use lowercase everywhere for consistency

As a bonus we fix 3 cast warnings.
This commit is contained in:
Davide Beatrici 2020-08-15 03:29:44 +02:00
parent 337a04b758
commit e18bb465c9
2 changed files with 3 additions and 7 deletions

View File

@ -2520,7 +2520,7 @@ void IPCIPv6SendUnicast(IPC *ipc, void *data, UINT size, IP *next_ip)
}
else
{
CHAR tmp[MAX_SIZE];
char tmp[MAX_SIZE];
IPToStr6(tmp, MAX_SIZE, &srcIp);
Debug("We couldn't find a router for the source address of %s! Trying as local.\n", tmp);
isLocal = true;
@ -2569,7 +2569,7 @@ void IPCIPv6SendUnicast(IPC *ipc, void *data, UINT size, IP *next_ip)
UCHAR destMacAddress[6];
IPV6_ADDR solicitAddress;
CHAR tmp[MAX_SIZE];
char tmp[MAX_SIZE];
UCHAR *copy;
BLOCK *blk;
@ -2605,7 +2605,7 @@ void IPCIPv6SendUnicast(IPC *ipc, void *data, UINT size, IP *next_ip)
}
else
{
CHAR tmp[MAX_SIZE];
char tmp[MAX_SIZE];
IPToStr6(tmp, MAX_SIZE, next_ip);
Debug("We couldn't deduce the MAC address for unicast address %s, packet dropped.\n", tmp);
/// TODO: think about sending to the all routers broadcast MAC as a last resort

View File

@ -194,10 +194,6 @@ typedef unsigned short USHORT;
typedef unsigned char BYTE;
typedef unsigned char UCHAR;
#ifndef WIN32COM_CPP
typedef signed char CHAR;
#endif // WIN32COM_CPP
// 64-bit integer type
typedef unsigned long long UINT64;