Rev 3397 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3397 | Rev 3492 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | static char *cmdname = "quit"; |
37 | static char *cmdname = "quit"; |
38 | 38 | ||
39 | extern volatile unsigned int cli_quit; |
39 | extern volatile unsigned int cli_quit; |
40 | extern const char *progname; |
40 | extern const char *progname; |
41 | 41 | ||
42 | void * help_cmd_quit(unsigned int level) |
42 | void help_cmd_quit(unsigned int level) |
43 | { |
43 | { |
44 | printf("Type `%s' to exit %s\n", cmdname, progname); |
44 | printf("Type `%s' to exit %s\n", cmdname, progname); |
45 | return CMD_VOID; |
45 | return; |
46 | } |
46 | } |
47 | 47 | ||
48 | /* Quits the program and returns the status of whatever command |
48 | /* Quits the program and returns the status of whatever command |
49 | * came before invoking 'quit' */ |
49 | * came before invoking 'quit' */ |
50 | int * cmd_quit(char *argv[]) |
50 | int cmd_quit(char *argv[]) |
51 | { |
51 | { |
52 | /* Inform that we're outta here */ |
52 | /* Inform that we're outta here */ |
53 | cli_quit = 1; |
53 | cli_quit = 1; |
54 | return CMD_SUCCESS; |
54 | return CMD_SUCCESS; |
55 | } |
55 | } |