diff options
author | hasso <hasso> | 2004-03-04 17:45:00 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-03-04 17:45:00 +0000 |
commit | fa2b17e39499a77f41a719035a588b7fb63cec63 (patch) | |
tree | 3356703917aaa8359e0106ae3c2340ee6eea0e1f /vtysh | |
parent | caa6f8ac7d07f8cd3269255e6dce6d248f74af62 (diff) |
Many warning fixes from PC Drew ([quagga-dev 940]) and removing using PAGER
from vtysh ([quagga-dev 932]).
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/ChangeLog | 4 | ||||
-rw-r--r-- | vtysh/vtysh.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/vtysh/ChangeLog b/vtysh/ChangeLog index 55421da5..f4bf9341 100644 --- a/vtysh/ChangeLog +++ b/vtysh/ChangeLog @@ -1,3 +1,7 @@ +2004-03-04 Hasso Tepper <hasso@estpak.ee> + + * vtysh.c: Remove using PAGER. + 2004-01-15 Paul Jakma <paul@dishone.st> * vtysh_config.c: Fix up strlen to use correct string. diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 36b7c585..c92c6c46 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -350,8 +350,6 @@ vtysh_pager_init () { vtysh_pager_name = getenv ("VTYSH_PAGER"); if (! vtysh_pager_name) - vtysh_pager_name = getenv ("PAGER"); - if (! vtysh_pager_name) vtysh_pager_name = "more"; } @@ -1465,13 +1463,13 @@ execute_command (char *command, int argc, char *arg1, char *arg2) switch (argc) { case 0: - ret = execlp (command, command, NULL); + ret = execlp (command, command, (const char *)NULL); break; case 1: - ret = execlp (command, command, arg1, NULL); + ret = execlp (command, command, arg1, (const char *)NULL); break; case 2: - ret = execlp (command, command, arg1, arg2, NULL); + ret = execlp (command, command, arg1, arg2, (const char *)NULL); break; } |