diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-22 20:21:43 +0200 |
---|---|---|
committer | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-22 20:21:43 +0200 |
commit | 30814472b65886b2cdf4b62ed3ccc8cd087aaf4b (patch) | |
tree | 7732cff452d7f8f1c70f62bee51313f4d47bc621 /ripd/rip_debug.c | |
parent | Revert "isisd: Make work under new regime" (diff) | |
download | frr-30814472b65886b2cdf4b62ed3ccc8cd087aaf4b.tar.xz frr-30814472b65886b2cdf4b62ed3ccc8cd087aaf4b.zip |
Revert "ripd: Fixup code to work under new way"
This reverts commit 224a3ed809ae23539cd49b85ada8516cb0b0a762.
Diffstat (limited to 'ripd/rip_debug.c')
-rw-r--r-- | ripd/rip_debug.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ripd/rip_debug.c b/ripd/rip_debug.c index d347bcb2a..a267874ad 100644 --- a/ripd/rip_debug.c +++ b/ripd/rip_debug.c @@ -98,9 +98,9 @@ DEFUN (debug_rip_packet_direct, "RIP send packet\n") { rip_debug_packet |= RIP_DEBUG_PACKET; - if (strncmp ("send", argv[0]->arg, strlen (argv[0]->arg)) == 0) + if (strncmp ("send", argv[0], strlen (argv[0])) == 0) rip_debug_packet |= RIP_DEBUG_SEND; - if (strncmp ("recv", argv[0]->arg, strlen (argv[0]->arg)) == 0) + if (strncmp ("recv", argv[0], strlen (argv[0])) == 0) rip_debug_packet |= RIP_DEBUG_RECV; return CMD_SUCCESS; } @@ -118,9 +118,9 @@ DEFUN_DEPRECATED (debug_rip_packet_detail, "Detailed information display\n") { rip_debug_packet |= RIP_DEBUG_PACKET; - if (strncmp ("send", argv[0]->arg, strlen (argv[0]->arg)) == 0) + if (strncmp ("send", argv[0], strlen (argv[0])) == 0) rip_debug_packet |= RIP_DEBUG_SEND; - if (strncmp ("recv", argv[0]->arg, strlen (argv[0]->arg)) == 0) + if (strncmp ("recv", argv[0], strlen (argv[0])) == 0) rip_debug_packet |= RIP_DEBUG_RECV; return CMD_SUCCESS; } @@ -170,14 +170,14 @@ DEFUN (no_debug_rip_packet_direct, "RIP option set for receive packet\n" "RIP option set for send packet\n") { - if (strncmp ("send", argv[0]->arg, strlen (argv[0]->arg)) == 0) + if (strncmp ("send", argv[0], strlen (argv[0])) == 0) { if (IS_RIP_DEBUG_RECV) rip_debug_packet &= ~RIP_DEBUG_SEND; else rip_debug_packet = 0; } - else if (strncmp ("recv", argv[0]->arg, strlen (argv[0]->arg)) == 0) + else if (strncmp ("recv", argv[0], strlen (argv[0])) == 0) { if (IS_RIP_DEBUG_SEND) rip_debug_packet &= ~RIP_DEBUG_RECV; |