]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: refactor zserv.c
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sat, 24 Sep 2016 21:58:50 +0000 (21:58 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Sat, 24 Sep 2016 21:58:50 +0000 (21:58 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/zserv.c

index fc7b41954d1f4181c279a454f2284fdce533f5e9..5c4957a682debbc1dc255a0c660d104b400dffe5 100644 (file)
@@ -2263,13 +2263,13 @@ DEFUN (config_table,
        "Configure target kernel routing table\n"
        "TABLE integer\n")
 {
-  zebrad.rtm_table_default = strtol (argv[0], (char**)0, 10);
+  zebrad.rtm_table_default = strtol (argv[1]->arg, (char**)0, 10);
   return CMD_SUCCESS;
 }
 
 DEFUN (no_config_table,
        no_config_table_cmd,
-       "no table TABLENO",
+       "no table [TABLENO]",
        NO_STR
        "Configure target kernel routing table\n"
        "TABLE integer\n")