Changeset 5e718d9 in mainline for uspace/app/bdsh
- Timestamp:
- 2012-08-21T10:04:16Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67edca6
- Parents:
- 0da6c04 (diff), 6a97f2e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/app/bdsh
- Files:
-
- 4 added
- 4 edited
-
Makefile (modified) (1 diff)
-
cmds/modules/bdd/bdd.c (modified) (1 diff)
-
cmds/modules/cmp/cmp.c (added)
-
cmds/modules/cmp/cmp.h (added)
-
cmds/modules/cmp/cmp_def.h (added)
-
cmds/modules/cmp/entry.h (added)
-
cmds/modules/modules.h (modified) (2 diffs)
-
input.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/Makefile
r0da6c04 r5e718d9 53 53 cmds/modules/unmount/unmount.c \ 54 54 cmds/modules/kcon/kcon.c \ 55 cmds/modules/cmp/cmp.c \ 55 56 cmds/builtins/batch/batch.c \ 56 57 cmds/builtins/exit/exit.c \ -
uspace/app/bdsh/cmds/modules/bdd/bdd.c
r0da6c04 r5e718d9 38 38 #include "cmds.h" 39 39 40 #include < libblock.h>40 #include <block.h> 41 41 #include <loc.h> 42 42 #include <errno.h> -
uspace/app/bdsh/cmds/modules/modules.h
r0da6c04 r5e718d9 63 63 #include "printf/entry.h" 64 64 #include "echo/entry.h" 65 #include "cmp/entry.h" 65 66 66 67 /* Each .def function fills the module_t struct with the individual name, entry … … 86 87 #include "printf/printf_def.h" 87 88 #include "echo/echo_def.h" 89 #include "cmp/cmp_def.h" 88 90 89 91 {NULL, NULL, NULL, NULL} -
uspace/app/bdsh/input.c
r0da6c04 r5e718d9 67 67 int process_input(cliuser_t *usr) 68 68 { 69 token_t *tokens = calloc(WORD_MAX, sizeof(token_t));70 if (tokens == NULL)69 token_t *tokens_buf = calloc(WORD_MAX, sizeof(token_t)); 70 if (tokens_buf == NULL) 71 71 return ENOMEM; 72 token_t *tokens = tokens_buf; 72 73 73 74 char *cmd[WORD_MAX]; … … 80 81 81 82 if (usr->line == NULL) { 82 free(tokens );83 free(tokens_buf); 83 84 return CL_EFAIL; 84 85 } … … 213 214 } 214 215 tok_fini(&tok); 215 free(tokens );216 free(tokens_buf); 216 217 217 218 return rc; … … 268 269 if (rc != EOK) { 269 270 /* Error in communication with console */ 271 cli_quit = 1; 270 272 return; 271 273 }
Note:
See TracChangeset
for help on using the changeset viewer.
