aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-misc.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2006-01-11 08:43:13 +0000
committerNeil Conway <neilc@samurai.com>2006-01-11 08:43:13 +0000
commitfb627b76ccc4c7074e37b6b94155864f6cbd1b23 (patch)
treea8e7b008b4f6c2a2188641937e5b984f40b60104 /src/interfaces/libpq/fe-misc.c
parent762bcbdba2a2519b01b17b2c2b28f36e5ee9ea25 (diff)
downloadpostgresql-fb627b76ccc4c7074e37b6b94155864f6cbd1b23.tar.gz
postgresql-fb627b76ccc4c7074e37b6b94155864f6cbd1b23.zip
Cosmetic code cleanup: fix a bunch of places that used "return (expr);"
rather than "return expr;" -- the latter style is used in most of the tree. I kept the parentheses when they were necessary or useful because the return expression was complex.
Diffstat (limited to 'src/interfaces/libpq/fe-misc.c')
-rw-r--r--src/interfaces/libpq/fe-misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c
index d2caf667cd4..c65cda28aa6 100644
--- a/src/interfaces/libpq/fe-misc.c
+++ b/src/interfaces/libpq/fe-misc.c
@@ -23,7 +23,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.123 2005/11/22 18:17:33 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.124 2006/01/11 08:43:13 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1090,7 +1090,7 @@ pqSocketPoll(int sock, int forRead, int forWrite, time_t end_time)
int
PQmblen(const char *s, int encoding)
{
- return (pg_encoding_mblen(encoding, s));
+ return pg_encoding_mblen(encoding, s);
}
/*
@@ -1100,7 +1100,7 @@ PQmblen(const char *s, int encoding)
int
PQdsplen(const char *s, int encoding)
{
- return (pg_encoding_dsplen(encoding, s));
+ return pg_encoding_dsplen(encoding, s);
}
/*
@@ -1115,7 +1115,7 @@ PQenv2encoding(void)
str = getenv("PGCLIENTENCODING");
if (str && *str != '\0')
encoding = pg_char_to_encoding(str);
- return (encoding);
+ return encoding;
}