diff options
| author | 2012-07-04 21:34:13 +0200 | |
|---|---|---|
| committer | 2013-04-12 21:03:04 +0200 | |
| commit | f4cd5fb72ad191a3708d3d39a4fc74cc1ae4377e (patch) | |
| tree | 46024e82c3dd201423e102bd7efe4f7a33524048 /src/modules/m_spanningtree/server.cpp | |
| parent | m_spanningtree RSQUIT handler: Don't reimplement sending messages to remote u... (diff) | |
m_spanningtree atoi() to ConvToInt() conversion, add const where possible
Remove two redundant functions from Utils
Diffstat (limited to 'src/modules/m_spanningtree/server.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/server.cpp b/src/modules/m_spanningtree/server.cpp index d266b31f4..bc97c097b 100644 --- a/src/modules/m_spanningtree/server.cpp +++ b/src/modules/m_spanningtree/server.cpp @@ -105,7 +105,7 @@ bool TreeSocket::Outbound_Reply_Server(parameterlist ¶ms) std::string password = params[1]; std::string sid = params[3]; std::string description = params[4]; - int hops = atoi(params[2].c_str()); + int hops = ConvToInt(params[2]); this->SendCapabilities(2); @@ -197,7 +197,7 @@ bool TreeSocket::Inbound_Server(parameterlist ¶ms) std::string password = params[1]; std::string sid = params[3]; std::string description = params[4]; - int hops = atoi(params[2].c_str()); + int hops = ConvToInt(params[2]); this->SendCapabilities(2); |
