Browse Source

OpenBSD: Replace EBADMSG by ENOEXEC

git-svn-id: https://klish.googlecode.com/svn/trunk@574 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 12 years ago
parent
commit
44f46a2b34
2 changed files with 2 additions and 2 deletions
  1. 1 1
      clish/shell/shell_tinyrl.c
  2. 1 1
      tinyrl/tinyrl.c

+ 1 - 1
clish/shell/shell_tinyrl.c

@@ -467,7 +467,7 @@ int clish_shell_execline(clish_shell_t *this, const char *line, char **out)
 		case ENOENT:
 			this->state = SHELL_STATE_EOF;
 			break;
-		case EBADMSG:
+		case ENOEXEC:
 			this->state = SHELL_STATE_SYNTAX_ERROR;
 			break;
 		default:

+ 1 - 1
tinyrl/tinyrl.c

@@ -763,7 +763,7 @@ static char *internal_readline(tinyrl_t * this,
 		if (this->line && !this->handlers[KEY_LF](this, KEY_LF)) {
 			/* an issue has occured */
 			this->line = NULL;
-			lerrno = EBADMSG;
+			lerrno = ENOEXEC;
 		}
 		if (str)
 			lub_string_free(tmp);