Fixed code style, prefer enums over macros #4650

This commit is contained in:
Nick Bolton 2015-05-25 20:19:37 +01:00
parent 3563217c7b
commit 0fdcfe9b95
1 changed files with 6 additions and 3 deletions

View File

@ -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)
{ {
} }