Skip to content

Commit e9e36ad

Browse files
committed
Boolify _php_pgsql_link_has_results()
1 parent c577bb8 commit e9e36ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/pgsql/pgsql.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3618,14 +3618,14 @@ PHP_FUNCTION(pg_connection_busy)
36183618
}
36193619
/* }}} */
36203620

3621-
static int _php_pgsql_link_has_results(PGconn *pgsql) /* {{{ */
3621+
static bool _php_pgsql_link_has_results(PGconn *pgsql) /* {{{ */
36223622
{
36233623
PGresult *result;
36243624
while ((result = PQgetResult(pgsql))) {
36253625
PQclear(result);
3626-
return 1;
3626+
return true;
36273627
}
3628-
return 0;
3628+
return false;
36293629
}
36303630
/* }}} */
36313631

0 commit comments

Comments
 (0)