mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-12-19 08:31:32 +03:00
Use bool from stdbool.h, get rid of BOOL
BOOL was just an alias for bool, this commit replaces all instances of it for consistency.
For some reason bool was defined as a 4-byte integer instead of a 1-byte one, presumably to match WinAPI's definition: https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types
Nothing should break now that bool is 1-byte, as no protocol code appears to be relying on the size of the data type.
PACK, for example, explicitly stores boolean values as 4-byte integers.
This commit can be seen as a follow-up to 61ccaed4f6.
This commit is contained in:
@ -51,7 +51,7 @@ struct RPC_ENUM_DEVICE
|
||||
// License status of the service
|
||||
struct RPC_EL_LICENSE_STATUS
|
||||
{
|
||||
BOOL Valid; // Enable flag
|
||||
bool Valid; // Enable flag
|
||||
UINT64 SystemId; // System ID
|
||||
UINT64 SystemExpires; // System expiration date
|
||||
};
|
||||
@ -74,7 +74,7 @@ struct EL_DEVICE
|
||||
// License status
|
||||
struct EL_LICENSE_STATUS
|
||||
{
|
||||
BOOL Valid; // Enable flag
|
||||
bool Valid; // Enable flag
|
||||
UINT64 SystemId; // System ID
|
||||
UINT64 Expires; // Expiration date
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user