From: Donald Sharp Date: Wed, 21 Sep 2016 01:23:53 +0000 (-0400) Subject: lib: Get thread.c to compile X-Git-Tag: frr-3.0-branchpoint~129^2~223 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9c5f6b578e9c8df1186a89cee51c02348beb480a;p=matthieu%2Ffrr.git lib: Get thread.c to compile Signed-off-by: Donald Sharp --- diff --git a/lib/thread.c b/lib/thread.c index a26eb6bfd2..27caa86308 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -305,9 +305,9 @@ DEFUN (show_thread_cpu, if (argc > 0) { filter = 0; - while (argv[0][i] != '\0') + while (argv[0]->arg[i] != '\0') { - switch ( argv[0][i] ) + switch ( argv[0]->arg[i] ) { case 'r': case 'R': @@ -342,7 +342,7 @@ DEFUN (show_thread_cpu, { vty_out(vty, "Invalid filter \"%s\" specified," " must contain at least one of 'RWTEXB'%s", - argv[0], VTY_NEWLINE); + argv[0]->arg, VTY_NEWLINE); return CMD_WARNING; } } @@ -387,9 +387,9 @@ DEFUN (clear_thread_cpu, if (argc > 0) { filter = 0; - while (argv[0][i] != '\0') + while (argv[0]->arg[i] != '\0') { - switch ( argv[0][i] ) + switch ( argv[0]->arg[i] ) { case 'r': case 'R': @@ -424,7 +424,7 @@ DEFUN (clear_thread_cpu, { vty_out(vty, "Invalid filter \"%s\" specified," " must contain at least one of 'RWTEXB'%s", - argv[0], VTY_NEWLINE); + argv[0]->arg, VTY_NEWLINE); return CMD_WARNING; } }