mirror of
https://github.com/postgres/postgres.git
synced 2025-11-26 23:43:30 +03:00
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
This commit is contained in:
@@ -613,7 +613,7 @@ sendAuthRequest(Port *port, AuthRequest areq, char *extradata, int extralen)
|
||||
CHECK_FOR_INTERRUPTS();
|
||||
|
||||
pq_beginmessage(&buf, 'R');
|
||||
pq_sendint(&buf, (int32) areq, sizeof(int32));
|
||||
pq_sendint32(&buf, (int32) areq);
|
||||
if (extralen > 0)
|
||||
pq_sendbytes(&buf, extradata, extralen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user