diff options
author | Andres Freund <andres@anarazel.de> | 2017-10-11 21:00:46 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-10-11 21:00:46 -0700 |
commit | 31079a4a8e66e56e48bad94d380fa6224e9ffa0d (patch) | |
tree | 47f68a2def80fca4dd2a5d076bac89dfb2c33102 /src/backend/tcop/postgres.c | |
parent | 52328727bea4d9f95af9622e4624b9d1492df88e (diff) | |
download | postgresql-31079a4a8e66e56e48bad94d380fa6224e9ffa0d.tar.gz postgresql-31079a4a8e66e56e48bad94d380fa6224e9ffa0d.zip |
Replace remaining uses of pq_sendint with pq_sendint{8,16,32}.
pq_sendint() remains, so extension code doesn't unnecessarily break.
Author: Andres Freund
Discussion: https://postgr.es/m/20170914063418.sckdzgjfrsbekae4@alap3.anarazel.de
Diffstat (limited to 'src/backend/tcop/postgres.c')
-rw-r--r-- | src/backend/tcop/postgres.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 338ce81331d..2c7260e564b 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -2376,13 +2376,13 @@ exec_describe_statement_message(const char *stmt_name) */ pq_beginmessage_reuse(&row_description_buf, 't'); /* parameter description * message type */ - pq_sendint(&row_description_buf, psrc->num_params, 2); + pq_sendint16(&row_description_buf, psrc->num_params); for (i = 0; i < psrc->num_params; i++) { Oid ptype = psrc->param_types[i]; - pq_sendint(&row_description_buf, (int) ptype, 4); + pq_sendint32(&row_description_buf, (int) ptype); } pq_endmessage_reuse(&row_description_buf); @@ -3818,8 +3818,8 @@ PostgresMain(int argc, char *argv[], StringInfoData buf; pq_beginmessage(&buf, 'K'); - pq_sendint(&buf, (int32) MyProcPid, sizeof(int32)); - pq_sendint(&buf, (int32) MyCancelKey, sizeof(int32)); + pq_sendint32(&buf, (int32) MyProcPid); + pq_sendint32(&buf, (int32) MyCancelKey); pq_endmessage(&buf); /* Need not flush since ReadyForQuery will do it. */ } |