Include unistd.h to get read/write function declarations.

Remove unused variable addrLen.
This commit is contained in:
Thomas G. Lockhart 1997-11-17 16:18:07 +00:00
parent 8e86c46be3
commit 55a6b7a9be
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
*
*
* 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 <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
@ -65,7 +66,6 @@ PacketReceive(Port *port, /* receive port */
PacketLen cc; /* character count -- bytes recvd */
PacketLen packetLen; /* remaining packet chars to read */
Addr tmp; /* curr recv buf pointer */
int addrLen = sizeof(struct sockaddr_in);
int hdrLen;
int flag;
int decr;