From 890b0673469c79e3cc076b06a775d1d3f93d594d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 22 Oct 2008 21:41:54 +0200 Subject: command: use the bool datatype instead of int Instead of returning 0 for success and -1 for failure, return true or false. This seems more natural. --- src/command.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h index 441b1685..763487c1 100644 --- a/src/command.h +++ b/src/command.h @@ -23,6 +23,8 @@ #include "sllist.h" #include "ack.h" +#include + enum command_return { COMMAND_RETURN_ERROR = -1, COMMAND_RETURN_OK = 0, @@ -38,7 +40,7 @@ void command_finish(void); enum command_return command_process_list(struct client *client, - int list_ok, struct strnode *list); + bool list_ok, struct strnode *list); enum command_return command_process(struct client *client, char *commandString); -- cgit v1.2.3