mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Remove "CHAR", use lowercase everywhere for consistency
As a bonus we fix 3 cast warnings.
This commit is contained in:
parent
337a04b758
commit
e18bb465c9
@ -2520,7 +2520,7 @@ void IPCIPv6SendUnicast(IPC *ipc, void *data, UINT size, IP *next_ip)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CHAR tmp[MAX_SIZE];
|
char tmp[MAX_SIZE];
|
||||||
IPToStr6(tmp, MAX_SIZE, &srcIp);
|
IPToStr6(tmp, MAX_SIZE, &srcIp);
|
||||||
Debug("We couldn't find a router for the source address of %s! Trying as local.\n", tmp);
|
Debug("We couldn't find a router for the source address of %s! Trying as local.\n", tmp);
|
||||||
isLocal = true;
|
isLocal = true;
|
||||||
@ -2569,7 +2569,7 @@ void IPCIPv6SendUnicast(IPC *ipc, void *data, UINT size, IP *next_ip)
|
|||||||
UCHAR destMacAddress[6];
|
UCHAR destMacAddress[6];
|
||||||
IPV6_ADDR solicitAddress;
|
IPV6_ADDR solicitAddress;
|
||||||
|
|
||||||
CHAR tmp[MAX_SIZE];
|
char tmp[MAX_SIZE];
|
||||||
UCHAR *copy;
|
UCHAR *copy;
|
||||||
BLOCK *blk;
|
BLOCK *blk;
|
||||||
|
|
||||||
@ -2605,7 +2605,7 @@ void IPCIPv6SendUnicast(IPC *ipc, void *data, UINT size, IP *next_ip)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
CHAR tmp[MAX_SIZE];
|
char tmp[MAX_SIZE];
|
||||||
IPToStr6(tmp, MAX_SIZE, next_ip);
|
IPToStr6(tmp, MAX_SIZE, next_ip);
|
||||||
Debug("We couldn't deduce the MAC address for unicast address %s, packet dropped.\n", tmp);
|
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
|
/// TODO: think about sending to the all routers broadcast MAC as a last resort
|
||||||
|
@ -194,10 +194,6 @@ typedef unsigned short USHORT;
|
|||||||
typedef unsigned char BYTE;
|
typedef unsigned char BYTE;
|
||||||
typedef unsigned char UCHAR;
|
typedef unsigned char UCHAR;
|
||||||
|
|
||||||
#ifndef WIN32COM_CPP
|
|
||||||
typedef signed char CHAR;
|
|
||||||
#endif // WIN32COM_CPP
|
|
||||||
|
|
||||||
|
|
||||||
// 64-bit integer type
|
// 64-bit integer type
|
||||||
typedef unsigned long long UINT64;
|
typedef unsigned long long UINT64;
|
||||||
|
Loading…
Reference in New Issue
Block a user