1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Make libpqsrv_cancel's return const char *, not char *

Per headerscheck's C++ check.

Discussion: https://postgr.es/m/372769.1712179784@sss.pgh.pa.us
This commit is contained in:
Alvaro Herrera
2024-04-05 18:23:10 +02:00
parent 8e392595e5
commit b8b37e41ba
3 changed files with 4 additions and 4 deletions

View File

@ -1332,7 +1332,7 @@ pgfdw_cancel_query(PGconn *conn)
static bool
pgfdw_cancel_query_begin(PGconn *conn, TimestampTz endtime)
{
char *errormsg = libpqsrv_cancel(conn, endtime);
const char *errormsg = libpqsrv_cancel(conn, endtime);
if (errormsg != NULL)
ereport(WARNING,