Changes in uspace/app/bdsh/input.c [b7fd2a0:193d280c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
rb7fd2a0 r193d280c 65 65 * invokes the built-in entry point (a[0]) passing all arguments in a[] to 66 66 * the handler */ 67 errno_t process_input(cliuser_t *usr)67 int process_input(cliuser_t *usr) 68 68 { 69 69 token_t *tokens_buf = calloc(WORD_MAX, sizeof(token_t)); … … 73 73 74 74 char *cmd[WORD_MAX]; 75 errno_t rc = EOK;75 int rc = 0; 76 76 tokenizer_t tok; 77 77 unsigned int i, pipe_count, processed_pipes; … … 82 82 if (usr->line == NULL) { 83 83 free(tokens_buf); 84 return EINVAL;84 return CL_EFAIL; 85 85 } 86 86 … … 198 198 } 199 199 200 if (run_command(cmd, usr, &new_iostate) == 0) { 201 rc = EOK; 202 } else { 203 rc = EINVAL; 204 } 200 rc = run_command(cmd, usr, &new_iostate); 205 201 206 202 finit_with_files: … … 259 255 { 260 256 char *str; 261 errno_t rc;257 int rc; 262 258 263 259 tinput_set_prompt(tinput, usr->prompt);
Note:
See TracChangeset
for help on using the changeset viewer.