From eef21c186cbd494392136a63a631ebc021b69d15 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 17 Nov 2013 20:07:19 -0200 Subject: [PATCH] - Rename has_args to arg_type --- phpdbg_cmd.c | 4 ++-- phpdbg_cmd.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpdbg_cmd.c b/phpdbg_cmd.c index 479e678990..a2a6959dce 100644 --- a/phpdbg_cmd.c +++ b/phpdbg_cmd.c @@ -164,10 +164,10 @@ int phpdbg_do_cmd( const phpdbg_command_t *command, *selected = (phpdbg_command_t*) command; - if (command->has_args == REQUIRED_ARG && param->type == EMPTY_PARAM) { + if (command->arg_type == REQUIRED_ARG && param->type == EMPTY_PARAM) { phpdbg_error("This command requires argument!"); rc = FAILURE; - } else if (command->has_args == NO_ARG && param->type != EMPTY_PARAM) { + } else if (command->arg_type == NO_ARG && param->type != EMPTY_PARAM) { phpdbg_error("This command does not expect argument!"); rc = FAILURE; } else { diff --git a/phpdbg_cmd.h b/phpdbg_cmd.h index 6b697aaccc..0bfdb0f28a 100644 --- a/phpdbg_cmd.h +++ b/phpdbg_cmd.h @@ -66,7 +66,7 @@ struct _phpdbg_command_t { char alias; /* Alias */ phpdbg_command_handler_t handler; /* Command handler */ const phpdbg_command_t *subs; /* Sub Commands */ - char has_args; /* Accept args? */ + char arg_type; /* Accept args? */ }; /* }}} */ -- 2.40.0