summaryrefslogtreecommitdiff
path: root/src/port
diff options
context:
space:
mode:
authorBruce Momjian2011-06-09 18:32:50 +0000
committerBruce Momjian2011-06-09 18:32:50 +0000
commit6560407c7db2c7e32926a46f5fb52175ac10d9e5 (patch)
tree9641e538893819410634624a8e0cb86a13d857a6 /src/port
parentadf43b2b36ca3d7f988933990051c74a4bd0d6f8 (diff)
Pgindent run before 9.1 beta2.
Diffstat (limited to 'src/port')
-rw-r--r--src/port/getopt.c4
-rw-r--r--src/port/getpeereid.c2
-rw-r--r--src/port/inet_net_ntop.c4
-rw-r--r--src/port/noblock.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/port/getopt.c b/src/port/getopt.c
index e901bf7db5..eb50cba1ca 100644
--- a/src/port/getopt.c
+++ b/src/port/getopt.c
@@ -61,7 +61,7 @@ extern char *optarg;
#define BADARG (int)':'
#define EMSG ""
-int getopt(int nargc, char *const * nargv, const char * ostr);
+int getopt(int nargc, char *const * nargv, const char *ostr);
/*
* getopt
@@ -74,7 +74,7 @@ int getopt(int nargc, char *const * nargv, const char * ostr);
* returning -1.)
*/
int
-getopt(int nargc, char *const * nargv, const char * ostr)
+getopt(int nargc, char *const * nargv, const char *ostr)
{
static char *place = EMSG; /* option letter processing */
char *oli; /* option letter list index */
diff --git a/src/port/getpeereid.c b/src/port/getpeereid.c
index e10a140624..5f989ff78e 100644
--- a/src/port/getpeereid.c
+++ b/src/port/getpeereid.c
@@ -69,7 +69,7 @@ getpeereid(int sock, uid_t *uid, gid_t *gid)
*gid = ucred_getegid(ucred);
ucred_free(ucred);
- if (*uid == (uid_t)(-1) || *gid == (gid_t)(-1))
+ if (*uid == (uid_t) (-1) || *gid == (gid_t) (-1))
return -1;
return 0;
#else
diff --git a/src/port/inet_net_ntop.c b/src/port/inet_net_ntop.c
index 9c3c93b8ec..047895e4f4 100644
--- a/src/port/inet_net_ntop.c
+++ b/src/port/inet_net_ntop.c
@@ -81,8 +81,8 @@ inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size)
* We need to cover both the address family constants used by the PG inet
* type (PGSQL_AF_INET and PGSQL_AF_INET6) and those used by the system
* libraries (AF_INET and AF_INET6). We can safely assume PGSQL_AF_INET
- * == AF_INET, but the INET6 constants are very likely to be different.
- * If AF_INET6 isn't defined, silently ignore it.
+ * == AF_INET, but the INET6 constants are very likely to be different. If
+ * AF_INET6 isn't defined, silently ignore it.
*/
switch (af)
{
diff --git a/src/port/noblock.c b/src/port/noblock.c
index 883697535d..93a88ec7c6 100644
--- a/src/port/noblock.c
+++ b/src/port/noblock.c
@@ -23,7 +23,7 @@ pg_set_noblock(pgsocket sock)
#if !defined(WIN32)
return (fcntl(sock, F_SETFL, O_NONBLOCK) != -1);
#else
- unsigned long ioctlsocket_ret = 1;
+ unsigned long ioctlsocket_ret = 1;
/* Returns non-0 on failure, while fcntl() returns -1 on failure */
return (ioctlsocket(sock, FIONBIO, &ioctlsocket_ret) == 0);
@@ -42,7 +42,7 @@ pg_set_block(pgsocket sock)
return false;
return true;
#else
- unsigned long ioctlsocket_ret = 0;
+ unsigned long ioctlsocket_ret = 0;
/* Returns non-0 on failure, while fcntl() returns -1 on failure */
return (ioctlsocket(sock, FIONBIO, &ioctlsocket_ret) == 0);