From 8434863beb6f5b13cfcd02d41e1969fa66967f54 Mon Sep 17 00:00:00 2001 From: EinMByte Date: Sun, 2 Aug 2015 17:14:36 +0200 Subject: [PATCH] Fixed typos (thx zzz) --- i2pcontrol/I2PControl.cpp | 6 +++--- i2pcontrol/I2PControl.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/i2pcontrol/I2PControl.cpp b/i2pcontrol/I2PControl.cpp index 20724032..38eecf42 100644 --- a/i2pcontrol/I2PControl.cpp +++ b/i2pcontrol/I2PControl.cpp @@ -60,8 +60,8 @@ std::string I2PControlSession::Response::getErrorMsg() const return "Invalid password."; case ErrorCode::NoToken: return "No authentication token given."; - case ErrorCode::NonexistantToken: - return "Nonexistant authentication token given."; + case ErrorCode::NonexistentToken: + return "Nonexistent authentication token given."; case ErrorCode::ExpiredToken: return "Exipred authentication token given."; case ErrorCode::UnspecifiedVersion: @@ -182,7 +182,7 @@ bool I2PControlSession::authenticate(const PropertyTree& pt, Response& response) std::lock_guard lock(tokensMutex); auto it = tokens.find(token); if(it == tokens.end()) { - response.setError(ErrorCode::NonexistantToken); + response.setError(ErrorCode::NonexistentToken); return false; } else if(util::GetSecondsSinceEpoch() - it->second > I2P_CONTROL_TOKEN_LIFETIME) { response.setError(ErrorCode::ExpiredToken); diff --git a/i2pcontrol/I2PControl.h b/i2pcontrol/I2PControl.h index 4a164790..c7563288 100644 --- a/i2pcontrol/I2PControl.h +++ b/i2pcontrol/I2PControl.h @@ -76,7 +76,7 @@ public: // I2PControl specific InvalidPassword = 32001, NoToken = 32002, - NonexistantToken = 32003, + NonexistentToken = 32003, ExpiredToken = 32004, UnspecifiedVersion = 32005, UnsupportedVersion = 32006