Commit 55a6b7a9 authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

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

Remove unused variable addrLen.
parent 8e86c46b
...@@ -8,7 +8,7 @@ ...@@ -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 @@ ...@@ -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 */ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment