Skip to content

Commit a5fb43f

Browse files
committed
Boolify _php_pgsql_link_has_results()
1 parent 8ae9922 commit a5fb43f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/pgsql/pgsql.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3629,14 +3629,14 @@ PHP_FUNCTION(pg_connection_busy)
36293629
}
36303630
/* }}} */
36313631

3632-
static int _php_pgsql_link_has_results(PGconn *pgsql) /* {{{ */
3632+
static bool _php_pgsql_link_has_results(PGconn *pgsql) /* {{{ */
36333633
{
36343634
PGresult *result;
36353635
while ((result = PQgetResult(pgsql))) {
36363636
PQclear(result);
3637-
return 1;
3637+
return true;
36383638
}
3639-
return 0;
3639+
return false;
36403640
}
36413641
/* }}} */
36423642

0 commit comments

Comments
 (0)