com php-src: - Drop unneeded parenthesis: phpdbg_prompt.c

From: Date: Sun, 17 Nov 2013 12:10:02 +0000
Subject: com php-src: - Drop unneeded parenthesis: phpdbg_prompt.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-74902@lists.php.net to get a copy of this message
Commit: 4eb20ecfe756f46fec536ebfbd94066a1275ab37 Author: Felipe Pena <felipensp@gmail.com> Sun, 17 Nov 2013 10:10:02 -0200 Parents: 677aa7baa75c46a439ee897fd165590fa7ed0d24 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4eb20ecfe756f46fec536ebfbd94066a1275ab37 Log: - Drop unneeded parenthesis Changed paths: M phpdbg_prompt.c Diff: diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index b78efb4..cb5d83b 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -195,7 +195,7 @@ static PHPDBG_COMMAND(exec) /* {{{ */ struct stat sb; if (VCWD_STAT(param->str, &sb) != FAILURE) { - if (sb.st_mode & S_IFREG|S_IFLNK) { + if (sb.st_mode & (S_IFREG|S_IFLNK)) { if (PHPDBG_G(exec)) { phpdbg_notice("Unsetting old execution context: %s", PHPDBG_G(exec)); efree(PHPDBG_G(exec)); @@ -734,7 +734,7 @@ int phpdbg_do_cmd( const phpdbg_command_t *command, while (command && command->name && command->handler) { if ((command->name_len == expr_len && memcmp(cmd, command->name, expr_len) == 0) - || ((expr_len == 1) && (command->alias && command->alias == cmd_line[0]))) { + || (expr_len == 1 && command->alias && command->alias == cmd_line[0])) { param = emalloc(sizeof(phpdbg_param_t)); @@ -754,7 +754,7 @@ int phpdbg_do_cmd( const phpdbg_command_t *command, PHPDBG_G(lparam) = param; - if (command->subs && (param->type == STR_PARAM)) { + if (command->subs && param->type == STR_PARAM) { if (phpdbg_do_cmd(command->subs, selected, param->str, param->len TSRMLS_CC) == SUCCESS) { rc = SUCCESS; /* because we can */

« previous php.cvs (#74902) next »