summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2016-09-22 18:22:50 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2016-09-22 18:22:50 +0000
commite4123a9bb5fa32f2132837e861c4f34a978f926e (patch)
treec46d8a635846d9febfbe8347c476b26950c20dde /lib/command.c
parented5c254baf80bca107c083c61b4bbb7118925a15 (diff)
Revert "lib: Fixup more files"
This reverts commit f68cec764abf50b35945b907a2e005bc50c50831.
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c
index 9ca8ea5407..9cdf0a5ff0 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -1325,7 +1325,7 @@ DEFUN (config_hostname,
{
struct cmd_token *word = argv[1];
- if (!isalpha((int) word->arg))
+ if (!isalpha((int) word->arg[0]))
{
vty_out (vty, "Please specify string starting with alphabet%s", VTY_NEWLINE);
return CMD_WARNING;
@@ -2011,7 +2011,7 @@ DEFUN (banner_motd_file,
vty_out (vty, "%s does not exist", argv[3]->arg);
else if (cmd == CMD_WARNING)
vty_out (vty, "%s must be in %s",
- argv[0]->arg, SYSCONFDIR);
+ argv[0], SYSCONFDIR);
return cmd;
}