Changeset 46c20c8 in mainline for uspace/app/bdsh/scli.c
- Timestamp:
- 2010-11-26T20:08:10Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/scli.c
rfb150d78 r46c20c8 31 31 #include <stdio.h> 32 32 #include <stdlib.h> 33 #include <str ing.h>33 #include <str.h> 34 34 #include <unistd.h> 35 35 #include "config.h" … … 65 65 usr->lasterr = 0; 66 66 67 input_init(); 67 if (input_init() != 0) 68 return 1; 68 69 69 70 return (int) cli_set_prompt(usr); … … 88 89 exit(EXIT_FAILURE); 89 90 90 printf("Welcome to %s - %s\nType `help' at any time for usage information.\n",91 progname, PACKAGE_STRING);92 93 91 while (!cli_quit) { 94 92 get_input(&usr); … … 99 97 } 100 98 } 101 goto finit;102 99 103 finit: 100 printf("Leaving %s.\n", progname); 101 104 102 cli_finit(&usr); 105 103 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.