diff options
author | hasso <hasso> | 2004-08-26 15:08:30 +0200 |
---|---|---|
committer | hasso <hasso> | 2004-08-26 15:08:30 +0200 |
commit | 95e735b54408177a8a6659da342f17d487dfeb2c (patch) | |
tree | 579aa332966e9c6d5b580d46ec40ab8fa3e158f0 /vtysh/vtysh_main.c | |
parent | It hurts my eye every time configure finishes job :). (diff) | |
download | frr-95e735b54408177a8a6659da342f17d487dfeb2c.tar.xz frr-95e735b54408177a8a6659da342f17d487dfeb2c.zip |
Vtysh cleanup part 2. No any functional changes yet except VTYSH_INTERFACE.
Diffstat (limited to 'vtysh/vtysh_main.c')
-rw-r--r-- | vtysh/vtysh_main.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/vtysh/vtysh_main.c b/vtysh/vtysh_main.c index 0d2808e91..69a5358ed 100644 --- a/vtysh/vtysh_main.c +++ b/vtysh/vtysh_main.c @@ -40,7 +40,7 @@ char *progname; /* Configuration file name. Usually this is configurable, but vtysh - has static configuration file only. */ + * has static configuration file only. */ char *config_file = NULL; /* Configuration file and directory. */ @@ -142,15 +142,13 @@ usage (int status) if (status != 0) fprintf (stderr, "Try `%s --help' for more information.\n", progname); else - { - printf ("Usage : %s [OPTION...]\n\n\ -Integrated shell for Quagga routing software suite. \n\n\ --b, --boot Execute boot startup configuration\n\ --c, --command Execute argument as command\n\ --h, --help Display this help and exit\n\ -\n\ -Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS); - } + printf ("Usage : %s [OPTION...]\n\n" \ + "Integrated shell for Quagga routing software suite. \n\n"\ + "-b, --boot Execute boot startup configuration\n" \ + "-c, --command Execute argument as command\n "\ + "-h, --help Display this help and exit\n\n" \ + "Report bugs to %s\n", progname, ZEBRA_BUG_ADDRESS); + exit (status); } @@ -171,7 +169,7 @@ vtysh_rl_gets () { HIST_ENTRY *last; /* If the buffer has already been allocated, return the memory - to the free pool. */ + * to the free pool. */ if (line_read) { free (line_read); @@ -182,8 +180,7 @@ vtysh_rl_gets () line_read = readline (vtysh_prompt ()); /* If the line has any text in it, save it on the history. But only if - * last command in history isn't the same one. - */ + * last command in history isn't the same one. */ if (line_read && *line_read) { using_history(); @@ -261,7 +258,7 @@ main (int argc, char **argv, char **env) /* Read vtysh configuration file. */ vtysh_read_config (config_file, config_current, config_default); - /* If eval mode */ + /* If eval mode. */ if (eval_flag) { vtysh_execute_no_pager (eval_line); |