]> granicus.if.org Git - postgresql/commitdiff
Include unistd.h to get read/write function declarations.
authorThomas G. Lockhart <lockhart@fourpalms.org>
Mon, 17 Nov 1997 16:18:07 +0000 (16:18 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Mon, 17 Nov 1997 16:18:07 +0000 (16:18 +0000)
Remove unused variable addrLen.

src/backend/libpq/pqpacket.c

index 6774885c36e02917372b4060ad9da1dba3139acc..afc364b5c3e200359e023d1e2bf0254b956c6243 100644 (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;