mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-29 14:28:39 +02:00
Fixed code style, prefer enums over macros #4650
This commit is contained in:
parent
3563217c7b
commit
0fdcfe9b95
1 changed files with 6 additions and 3 deletions
|
@ -35,7 +35,10 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#define MAX_ERROR_SIZE 65535
|
#define MAX_ERROR_SIZE 65535
|
||||||
#define MAX_RETRY_COUNT 60
|
|
||||||
|
enum {
|
||||||
|
kMaxRetryCount = 60
|
||||||
|
};
|
||||||
|
|
||||||
static const char kFingerprintDirName[] = "SSL/Fingerprints";
|
static const char kFingerprintDirName[] = "SSL/Fingerprints";
|
||||||
//static const char kFingerprintLocalFilename[] = "Local.txt";
|
//static const char kFingerprintLocalFilename[] = "Local.txt";
|
||||||
|
@ -53,7 +56,7 @@ SecureSocket::SecureSocket(
|
||||||
TCPSocket(events, socketMultiplexer),
|
TCPSocket(events, socketMultiplexer),
|
||||||
m_secureReady(false),
|
m_secureReady(false),
|
||||||
m_fatal(false),
|
m_fatal(false),
|
||||||
m_maxRetry(MAX_RETRY_COUNT)
|
m_maxRetry(kMaxRetryCount)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +67,7 @@ SecureSocket::SecureSocket(
|
||||||
TCPSocket(events, socketMultiplexer, socket),
|
TCPSocket(events, socketMultiplexer, socket),
|
||||||
m_secureReady(false),
|
m_secureReady(false),
|
||||||
m_fatal(false),
|
m_fatal(false),
|
||||||
m_maxRetry(MAX_RETRY_COUNT)
|
m_maxRetry(kMaxRetryCount)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue