Skip to content
Snippets Groups Projects
Commit 725bbde0 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Clean up indenting.

parent baeb8790
Branches
Tags
No related merge requests found
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.8 1997/10/25 01:09:18 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/be-pqexec.c,v 1.9 1997/11/10 05:15:49 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.23 1997/11/07 20:51:27 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/hba.c,v 1.24 1997/11/10 05:15:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.10 1997/10/25 01:09:21 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/portal.c,v 1.11 1997/11/10 05:15:54 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.25 1997/11/10 02:21:18 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/pqcomm.c,v 1.26 1997/11/10 05:15:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -574,19 +574,24 @@ pq_async_notify()
static char sock_path[100] = "";
static void do_unlink()
static void
do_unlink()
{
if (sock_path[0]) unlink(sock_path);
if (sock_path[0])
unlink(sock_path);
}
int
StreamServerPort(char *hostName, short portName, int *fdP)
{
union {
union
{
struct sockaddr_in in;
struct sockaddr_un un;
} saddr;
int fd, err, family;
int fd,
err,
family;
size_t len;
int one = 1;
......@@ -601,7 +606,8 @@ StreamServerPort(char *hostName, short portName, int *fdP)
pqdebug("%s", PQerrormsg);
return (STATUS_ERROR);
}
if (family == AF_UNIX) on_exitpg(do_unlink, (caddr_t) 0);
if (family == AF_UNIX)
on_exitpg(do_unlink, (caddr_t) 0);
if ((setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *) &one,
sizeof(one))) == -1)
{
......@@ -664,7 +670,8 @@ StreamServerPort(char *hostName, short portName, int *fdP)
int
StreamConnection(int server_fd, Port *port)
{
int len, addrlen;
int len,
addrlen;
int family = port->raddr.in.sin_family;
/* accept connection (and fill in the client (remote) address) */
......@@ -737,7 +744,8 @@ StreamClose(int sock)
int
StreamOpen(char *hostName, short portName, Port *port)
{
int len, err;
int len,
err;
struct hostent *hp;
extern int errno;
......
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.9 1997/11/07 20:51:36 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/libpq/Attic/pqpacket.c,v 1.10 1997/11/10 05:16:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -85,9 +85,9 @@ PacketReceive(Port *port, /* receive port */
/*
* Assume port->nBytes is zero unless we were interrupted during
* non-blocking I/O. This first recv() is to get the hdr
* information so we know how many bytes to read. Life would be very
* complicated if we read too much data (buffering).
* non-blocking I/O. This first recv() is to get the hdr information
* so we know how many bytes to read. Life would be very complicated
* if we read too much data (buffering).
*/
tmp = ((Addr) buf) + port->nBytes;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment