mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 17:46:55 +02:00
Include unistd.h to get read/write function declarations.
Remove unused variable addrLen.
This commit is contained in:
parent
8e86c46be3
commit
55a6b7a9be
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.10 1997/11/10 05:16:00 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.11 1997/11/17 16:18:07 thomas Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -37,6 +37,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
@ -65,7 +66,6 @@ PacketReceive(Port *port, /* receive port */
|
|||||||
PacketLen cc; /* character count -- bytes recvd */
|
PacketLen cc; /* character count -- bytes recvd */
|
||||||
PacketLen packetLen; /* remaining packet chars to read */
|
PacketLen packetLen; /* remaining packet chars to read */
|
||||||
Addr tmp; /* curr recv buf pointer */
|
Addr tmp; /* curr recv buf pointer */
|
||||||
int addrLen = sizeof(struct sockaddr_in);
|
|
||||||
int hdrLen;
|
int hdrLen;
|
||||||
int flag;
|
int flag;
|
||||||
int decr;
|
int decr;
|
||||||
|
Loading…
Reference in New Issue
Block a user