summaryrefslogtreecommitdiff
path: root/src/operator-idle.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-idle.cc
parent3ea7edf8c9bf7583c426178d4aaff4fb5b736bd2 (diff)
created a Parser class
Diffstat (limited to 'src/operator-idle.cc')
-rw-r--r--src/operator-idle.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/operator-idle.cc b/src/operator-idle.cc
index 3ce9673..4bfc2d5 100644
--- a/src/operator-idle.cc
+++ b/src/operator-idle.cc
@@ -91,7 +91,7 @@ Operator::ProcessResult IdleOperator::process(Depot &depot, Request &command)
// when not using FNOTIFY, we need to check the session timeout.
time_t startTime = time(nullptr);
#ifdef HAVE_FNOTIFY
- ()startTime; // removes a compile warning
+ (void)startTime; // removes a compile warning
#endif
bincClient << "+ idling" << endl;
@@ -214,14 +214,14 @@ Operator::ProcessResult IdleOperator::process(Depot &depot, Request &command)
return Operator::ProcessResult::OK;
}
-Parser::ParseResult IdleOperator::parse(Request &c_in)
+Parser::ParseResult IdleOperator::parse(Request &c_in, Parser &p)
{
Session &session = Session::getInstance();
if (c_in.getUidMode()) return Parser::ParseResult::REJECT;
Parser::ParseResult res;
- if ((res = expectCRLF()) != Parser::ParseResult::ACCEPT) {
+ if ((res = p.expectCRLF()) != Parser::ParseResult::ACCEPT) {
session.setLastError("Expected CRLF after IDLE");
return res;
}