diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/thread.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/thread.c b/lib/thread.c index 27caa8630..a26eb6bfd 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]->arg[i] != '\0') + while (argv[0][i] != '\0') { - switch ( argv[0]->arg[i] ) + switch ( argv[0][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]->arg, VTY_NEWLINE); + argv[0], VTY_NEWLINE); return CMD_WARNING; } } @@ -387,9 +387,9 @@ DEFUN (clear_thread_cpu, if (argc > 0) { filter = 0; - while (argv[0]->arg[i] != '\0') + while (argv[0][i] != '\0') { - switch ( argv[0]->arg[i] ) + switch ( argv[0][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]->arg, VTY_NEWLINE); + argv[0], VTY_NEWLINE); return CMD_WARNING; } } |