From cf4d80fc655a399615529bdd27e0be284754c5ab Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 13:10:54 +0200 Subject: command: convert command_return to to a strictly-typed enum --- src/ClientRead.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ClientRead.cxx') 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; } -- cgit v1.2.3