Skip to content

Commit 3e36598

Browse files
committed
dba: Use true / false instead of 1 / 0 for bool parameters
Changes done with Coccinelle: @r1@ identifier F; identifier p; typedef bool; parameter list [n1] PL1; parameter list [n2] PL2; @@ F(PL1, bool p, PL2) { ... } @r2@ identifier r1.F; expression list [r1.n1] EL1; expression list [r1.n2] EL2; @@ F(EL1, ( - 1 + true | - 0 + false ) , EL2)
1 parent 34c71f8 commit 3e36598

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/dba/dba.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,14 +969,14 @@ static void php_dba_open(INTERNAL_FUNCTION_PARAMETERS, bool persistent)
969969
/* {{{ Opens path using the specified handler in mode persistently */
970970
PHP_FUNCTION(dba_popen)
971971
{
972-
php_dba_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
972+
php_dba_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, true);
973973
}
974974
/* }}} */
975975

976976
/* {{{ Opens path using the specified handler in mode*/
977977
PHP_FUNCTION(dba_open)
978978
{
979-
php_dba_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
979+
php_dba_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, false);
980980
}
981981
/* }}} */
982982

0 commit comments

Comments
 (0)