diff options
author | David Lamparter <equinox@diac24.net> | 2017-05-15 14:32:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 14:32:13 +0200 |
commit | 36a963950c3c7e7236e90b7a348d3a01cab5c316 (patch) | |
tree | 54d57c68a20b63ea7be39d40d401245fc92dc47c /lib | |
parent | Merge remote-tracking branch 'origin/stable/3.0' (diff) | |
parent | eigrpd: Diverse Fixes (diff) | |
download | frr-36a963950c3c7e7236e90b7a348d3a01cab5c316.tar.xz frr-36a963950c3c7e7236e90b7a348d3a01cab5c316.zip |
Merge pull request #526 from donaldsharp/renato_eigrp
Renato eigrp
Diffstat (limited to 'lib')
-rw-r--r-- | lib/command.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/command.c b/lib/command.c index 03092ed18..2b8eee8de 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2117,16 +2117,8 @@ DEFUN (config_terminal_length, "Number of lines on screen (0 for no pausing)\n") { int idx_number = 2; - int lines; - char *endptr = NULL; - lines = strtol (argv[idx_number]->arg, &endptr, 10); - if (lines < 0 || lines > 512 || *endptr != '\0') - { - vty_out (vty, "length is malformed%s", VTY_NEWLINE); - return CMD_WARNING; - } - vty->lines = lines; + vty->lines = atoi (argv[idx_number]->arg); return CMD_SUCCESS; } @@ -2150,16 +2142,8 @@ DEFUN (service_terminal_length, "Number of lines of VTY (0 means no line control)\n") { int idx_number = 2; - int lines; - char *endptr = NULL; - lines = strtol (argv[idx_number]->arg, &endptr, 10); - if (lines < 0 || lines > 512 || *endptr != '\0') - { - vty_out (vty, "length is malformed%s", VTY_NEWLINE); - return CMD_WARNING; - } - host.lines = lines; + host.lines = atoi (argv[idx_number]->arg); return CMD_SUCCESS; } |