diff options
| author | Andre Noll <maan@systemlinux.org> | 2008-03-16 17:07:26 +0100 |
|---|---|---|
| committer | Andre Noll <maan@systemlinux.org> | 2008-03-16 17:07:26 +0100 |
| commit | 354729ae9ab2f166f03fde817ee3ab280de65b7d (patch) | |
| tree | e3b492c143be5023870a4e14585c2576fbcb8012 | |
| parent | 52917042ff1fca9f83c68ed1c38a92526e1afcb0 (diff) | |
Get rid of E_INVALID_COMMAND.
| -rw-r--r-- | dss.c | 3 | ||||
| -rw-r--r-- | error.h | 1 |
2 files changed, 2 insertions, 2 deletions
@@ -43,7 +43,8 @@ COMMANDS int call_command_handler(int argc, char * const * const argv) { COMMANDS - return -E_INVALID_COMMAND; + DSS_EMERG_LOG("BUG: did not find command handler\n"); + exit(EXIT_FAILURE); } #undef COMMAND #undef COMMANDS @@ -54,7 +54,6 @@ static inline void log_err_msg(int loglevel, int num) #define DSS_ERRORS \ DSS_ERROR(SUCCESS, "success") \ DSS_ERROR(SYNTAX, "syntax error") \ - DSS_ERROR(INVALID_COMMAND, "invalid command") \ DSS_ERROR(ATOI_OVERFLOW, "value too large") \ DSS_ERROR(STRTOLL, "unknown strtoll error") \ DSS_ERROR(ATOI_NO_DIGITS, "no digits found in string") \ |
