diff options
| author | practicalswift <[email protected]> | 2017-01-20 10:09:31 +0100 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-12-21 13:36:00 +0100 |
| commit | 06edc23f7409160adaaea5dd8d80b5dcaf696f99 (patch) | |
| tree | a31da529f47b81c6c7c5feb6b83a0b3318ea320b /src/init.cpp | |
| parent | Merge #11667: Add scripts to dumpwallet RPC (diff) | |
| download | discoin-06edc23f7409160adaaea5dd8d80b5dcaf696f99.tar.xz discoin-06edc23f7409160adaaea5dd8d80b5dcaf696f99.zip | |
Improve readability by removing redundant casts to same type (on all platforms)
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index e4cad01b7..6a98231fd 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -906,7 +906,7 @@ bool AppInitParameterInteraction() nMaxConnections = std::max(nUserMaxConnections, 0); // Trim requested connection counts, to fit into system limitations - nMaxConnections = std::max(std::min(nMaxConnections, (int)(FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS)), 0); + nMaxConnections = std::max(std::min(nMaxConnections, FD_SETSIZE - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS), 0); nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS); if (nFD < MIN_CORE_FILEDESCRIPTORS) return InitError(_("Not enough file descriptors available.")); |