aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-01-20 10:09:31 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2017-12-21 13:36:00 +0100
commit06edc23f7409160adaaea5dd8d80b5dcaf696f99 (patch)
treea31da529f47b81c6c7c5feb6b83a0b3318ea320b /src/init.cpp
parent711d16ca4a916d4e30f17e2babb46fc1b0be4732 (diff)
downloadbitcoin-06edc23f7409160adaaea5dd8d80b5dcaf696f99.tar.xz
Improve readability by removing redundant casts to same type (on all platforms)
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index e4cad01b70..6a98231fd8 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."));