From 1d16e90dcade08fdcf20a969ad3e8f382ab3892f Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Wed, 30 Jan 2008 22:40:22 +0200 Subject: [PATCH] config: Swap the "unknown command" and "parse error" messages. They should be in the same order as in enum parse_error. --- src/config/conf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/config/conf.c b/src/config/conf.c index 016ff6e3..05d29a6b 100644 --- a/src/config/conf.c +++ b/src/config/conf.c @@ -391,12 +391,12 @@ parse_config_file(struct option *options, unsigned char *name, enum parse_error err = 0; enum verbose_level verbose = get_cmd_opt_int("verbose"); static const unsigned char error_msg[][40] = { - "no error", - "parse error", - "unknown command", - "unknown option", - "bad value", - "no memory left", + "no error", /* ERROR_NONE */ + "unknown command", /* ERROR_COMMAND */ + "parse error", /* ERROR_PARSE */ + "unknown option", /* ERROR_OPTION */ + "bad value", /* ERROR_VALUE */ + "no memory left", /* ERROR_NOMEM */ }; while (file && *file) {