Skip to content

Commit 55a6b7a

Browse files
author
Thomas G. Lockhart
committed
Include unistd.h to get read/write function declarations.
Remove unused variable addrLen.
1 parent 8e86c46 commit 55a6b7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/libpq/pqpacket.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.10 1997/11/10 05:16:00 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.11 1997/11/17 16:18:07 thomas Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -37,6 +37,7 @@
3737
*
3838
*/
3939
#include <stdio.h>
40+
#include <unistd.h>
4041
#include <sys/types.h>
4142
#include <sys/socket.h>
4243
#include <netdb.h>
@@ -65,7 +66,6 @@ PacketReceive(Port *port, /* receive port */
6566
PacketLen cc; /* character count -- bytes recvd */
6667
PacketLen packetLen; /* remaining packet chars to read */
6768
Addr tmp; /* curr recv buf pointer */
68-
int addrLen = sizeof(struct sockaddr_in);
6969
int hdrLen;
7070
int flag;
7171
int decr;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy