aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientRead.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ClientRead.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ClientRead.cxx b/src/ClientRead.cxx
index 956f4f71b..2bb3c56c0 100644
--- a/src/ClientRead.cxx
+++ b/src/ClientRead.cxx
@@ -40,19 +40,19 @@ Client::OnSocketInput(void *data, size_t length)
BufferedSocket::ConsumeInput(newline + 1 - p);
- enum command_return result = client_process_line(*this, p);
+ CommandResult result = client_process_line(*this, p);
switch (result) {
- case COMMAND_RETURN_OK:
- case COMMAND_RETURN_IDLE:
- case COMMAND_RETURN_ERROR:
+ case CommandResult::OK:
+ case CommandResult::IDLE:
+ case CommandResult::ERROR:
break;
- case COMMAND_RETURN_KILL:
+ case CommandResult::KILL:
Close();
main_loop->Break();
return InputResult::CLOSED;
- case COMMAND_RETURN_CLOSE:
+ case CommandResult::CLOSE:
Close();
return InputResult::CLOSED;
}