summaryrefslogtreecommitdiffstats
path: root/commands/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/readline.c')
-rw-r--r--commands/readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/readline.c b/commands/readline.c
index ef54b5e92f..85b04a3903 100644
--- a/commands/readline.c
+++ b/commands/readline.c
@@ -16,13 +16,13 @@ static int do_readline(int argc, char *argv[])
if (readline(argv[1], buf, CONFIG_CBSIZE) < 0) {
free(buf);
- return 1;
+ return COMMAND_ERROR;
}
setenv(argv[2], buf);
free(buf);
- return 0;
+ return COMMAND_SUCCESS;
}
BAREBOX_CMD_HELP_START(readline)