aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/fastpath.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2017-10-11 21:00:46 -0700
committerAndres Freund <andres@anarazel.de>2017-10-11 21:00:46 -0700
commit31079a4a8e66e56e48bad94d380fa6224e9ffa0d (patch)
tree47f68a2def80fca4dd2a5d076bac89dfb2c33102 /src/backend/tcop/fastpath.c
parent52328727bea4d9f95af9622e4624b9d1492df88e (diff)
downloadpostgresql-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/fastpath.c')
-rw-r--r--src/backend/tcop/fastpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c
index 8101ae74e0b..a434f7f857f 100644
--- a/src/backend/tcop/fastpath.c
+++ b/src/backend/tcop/fastpath.c
@@ -143,7 +143,7 @@ SendFunctionResult(Datum retval, bool isnull, Oid rettype, int16 format)
if (isnull)
{
if (newstyle)
- pq_sendint(&buf, -1, 4);
+ pq_sendint32(&buf, -1);
}
else
{
@@ -169,7 +169,7 @@ SendFunctionResult(Datum retval, bool isnull, Oid rettype, int16 format)
getTypeBinaryOutputInfo(rettype, &typsend, &typisvarlena);
outputbytes = OidSendFunctionCall(typsend, retval);
- pq_sendint(&buf, VARSIZE(outputbytes) - VARHDRSZ, 4);
+ pq_sendint32(&buf, VARSIZE(outputbytes) - VARHDRSZ);
pq_sendbytes(&buf, VARDATA(outputbytes),
VARSIZE(outputbytes) - VARHDRSZ);
pfree(outputbytes);