summaryrefslogtreecommitdiff
path: root/src/operator-check.cc
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2023-10-11 21:49:37 +0200
committerJannis M. Hoffmann <jannis@fehcom.de>2023-10-11 21:49:37 +0200
commitbc946633e0bcae5fe63528ad743bcc67de7e347d (patch)
tree7a3d127148c13d84e92f38c319fb5aad1e88a6cb /src/operator-check.cc
parent3ea7edf8c9bf7583c426178d4aaff4fb5b736bd2 (diff)
created a Parser class
Diffstat (limited to 'src/operator-check.cc')
-rw-r--r--src/operator-check.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operator-check.cc b/src/operator-check.cc
index 2514fcc..9a282b7 100644
--- a/src/operator-check.cc
+++ b/src/operator-check.cc
@@ -42,13 +42,13 @@ Operator::ProcessResult CheckOperator::process(Depot &depot, Request &command)
return Operator::ProcessResult::OK;
}
-Parser::ParseResult CheckOperator::parse(Request &c_in)
+Parser::ParseResult CheckOperator::parse(Request &c_in, Parser &p)
{
Session &session = Session::getInstance();
if (c_in.getUidMode()) return Parser::ParseResult::REJECT;
- if (Parser::ParseResult res = expectCRLF(); res != Parser::ParseResult::ACCEPT) {
+ if (Parser::ParseResult res = p.expectCRLF(); res != Parser::ParseResult::ACCEPT) {
session.setLastError("Expected CRLF after CHECK");
return res;
}