]> granicus.if.org Git - postgresql/commitdiff
Cosmetic code cleanup: fix a bunch of places that used "return (expr);"
authorNeil Conway <neilc@samurai.com>
Wed, 11 Jan 2006 08:43:13 +0000 (08:43 +0000)
committerNeil Conway <neilc@samurai.com>
Wed, 11 Jan 2006 08:43:13 +0000 (08:43 +0000)
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.

19 files changed:
src/backend/access/heap/heapam.c
src/backend/access/heap/tuptoaster.c
src/backend/access/nbtree/nbtinsert.c
src/backend/access/transam/xlog.c
src/backend/access/transam/xlogutils.c
src/backend/executor/execMain.c
src/backend/libpq/be-secure.c
src/backend/utils/adt/like.c
src/backend/utils/adt/mac.c
src/backend/utils/adt/network.c
src/backend/utils/mb/encnames.c
src/backend/utils/mb/mbutils.c
src/bin/psql/tab-complete.c
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-protocol2.c
src/interfaces/libpq/fe-protocol3.c
src/tutorial/funcs.c

index eeacff56c9d82a0d09eb7d953cea0d64f378a8c8..4ba8e8fc6d9dad69fd194050facf924861434d1d 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.205 2005/11/26 05:03:06 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.206 2006/01/11 08:43:11 neilc Exp $
  *
  *
  * INTERFACE ROUTINES
@@ -2796,7 +2796,7 @@ log_heap_clean(Relation reln, Buffer buffer, OffsetNumber *unused, int uncnt)
 
        recptr = XLogInsert(RM_HEAP_ID, XLOG_HEAP_CLEAN, rdata);
 
-       return (recptr);
+       return recptr;
 }
 
 static XLogRecPtr
@@ -2884,14 +2884,14 @@ log_heap_update(Relation reln, Buffer oldbuf, ItemPointerData from,
 
        recptr = XLogInsert(RM_HEAP_ID, info, rdata);
 
-       return (recptr);
+       return recptr;
 }
 
 XLogRecPtr
 log_heap_move(Relation reln, Buffer oldbuf, ItemPointerData from,
                          Buffer newbuf, HeapTuple newtup)
 {
-       return (log_heap_update(reln, oldbuf, from, newbuf, newtup, true));
+       return log_heap_update(reln, oldbuf, from, newbuf, newtup, true);
 }
 
 static void
index 4a1ed4e7edbdd65664e35f440bc0bde0bc6b490c..0d737988d922a266b08286bb4357a9c2dadbcfc4 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.57 2005/12/03 05:50:59 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/access/heap/tuptoaster.c,v 1.58 2006/01/11 08:43:11 neilc Exp $
  *
  *
  * INTERFACE ROUTINES
@@ -182,7 +182,7 @@ heap_tuple_untoast_attr_slice(varattrib *attr, int32 sliceoffset, int32 slicelen
                if (VARATT_IS_EXTERNAL(attr))
                {
                        /* fast path */
-                       return (toast_fetch_datum_slice(attr, sliceoffset, slicelength));
+                       return toast_fetch_datum_slice(attr, sliceoffset, slicelength);
                }
                else
                        preslice = attr;
@@ -1338,7 +1338,7 @@ toast_fetch_datum_slice(varattrib *attr, int32 sliceoffset, int32 length)
                VARATT_SIZEP(result) |= VARATT_FLAG_COMPRESSED;
 
        if (length == 0)
-               return (result);                /* Can save a lot of work at this point! */
+               return result;          /* Can save a lot of work at this point! */
 
        startchunk = sliceoffset / TOAST_MAX_CHUNK_SIZE;
        endchunk = (sliceoffset + length - 1) / TOAST_MAX_CHUNK_SIZE;
index 6a66a356c6dce954d05650eac9c4a1059568a24e..f634889219bc569cb7b30de9c6ea293961298ed3 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.129 2005/11/22 18:17:06 momjian Exp $
+ *       $PostgreSQL: pgsql/src/backend/access/nbtree/nbtinsert.c,v 1.130 2006/01/11 08:43:11 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1498,7 +1498,7 @@ _bt_newroot(Relation rel, Buffer lbuf, Buffer rbuf)
        /* write and let go of metapage buffer */
        _bt_wrtbuf(rel, metabuf);
 
-       return (rootbuf);
+       return rootbuf;
 }
 
 /*
index 91ce3559a158f0e3d4681903af8a2ef06d0666db..38f31ff818849d059c93c1ea640b8977dc2d9f94 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.225 2005/12/29 18:08:05 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.226 2006/01/11 08:43:12 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -561,7 +561,7 @@ XLogInsert(RmgrId rmid, uint8 info, XLogRecData *rdata)
        {
                RecPtr.xlogid = 0;
                RecPtr.xrecoff = SizeOfXLogLongPHD;             /* start of 1st chkpt record */
-               return (RecPtr);
+               return RecPtr;
        }
 
        /*
@@ -953,7 +953,7 @@ begin:;
 
        END_CRIT_SECTION();
 
-       return (RecPtr);
+       return RecPtr;
 }
 
 /*
@@ -1742,7 +1742,7 @@ XLogFileInit(uint32 log, uint32 seg,
                                                                path, log, seg)));
                }
                else
-                       return (fd);
+                       return fd;
        }
 
        /*
@@ -1834,7 +1834,7 @@ XLogFileInit(uint32 log, uint32 seg,
                   errmsg("could not open file \"%s\" (log file %u, segment %u): %m",
                                  path, log, seg)));
 
-       return (fd);
+       return fd;
 }
 
 /*
index 485aa52474df3ae72815d18f3338b5f9486b9d28..25b5f65b41656a99cf9f79a9a1e082c01cfa617f 100644 (file)
@@ -11,7 +11,7 @@
  * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.39 2005/10/15 02:49:11 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.40 2006/01/11 08:43:12 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -51,13 +51,13 @@ XLogReadBuffer(bool extend, Relation reln, BlockNumber blkno)
                }
                if (buffer != InvalidBuffer)
                        LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE);
-               return (buffer);
+               return buffer;
        }
 
        buffer = ReadBuffer(reln, blkno);
        if (buffer != InvalidBuffer)
                LockBuffer(buffer, BUFFER_LOCK_EXCLUSIVE);
-       return (buffer);
+       return buffer;
 }
 
 
@@ -141,7 +141,7 @@ _xl_new_reldesc(void)
        if (_xlast < _xlcnt)
        {
                _xlrelarr[_xlast].reldata.rd_rel = &(_xlpgcarr[_xlast]);
-               return (&(_xlrelarr[_xlast]));
+               return &(_xlrelarr[_xlast]);
        }
 
        /* reuse */
@@ -150,7 +150,7 @@ _xl_new_reldesc(void)
        _xl_remove_hash_entry(res);
 
        _xlast--;
-       return (res);
+       return res;
 }
 
 
@@ -249,7 +249,7 @@ XLogOpenRelation(RelFileNode rnode)
        _xlrelarr[0].lessRecently = res;
        res->lessRecently->moreRecently = res;
 
-       return (&(res->reldata));
+       return &(res->reldata);
 }
 
 /*
index 21f3bfc1b00f38761c437e9c491f87a281e3d3a8..1f70b2704adf1b2071e0e611bb8e5faa42f72873 100644 (file)
@@ -26,7 +26,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.263 2006/01/07 22:30:43 tgl Exp $
+ *       $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.264 2006/01/11 08:43:12 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1231,7 +1231,7 @@ lnext:    ;
                                                default:
                                                        elog(ERROR, "unrecognized heap_lock_tuple status: %u",
                                                                 test);
-                                                       return (NULL);
+                                                       return NULL;
                                        }
                                }
                        }
@@ -2109,7 +2109,7 @@ lpqnext:;
                        epq->rti = 0;
                        estate->es_useEvalPlan = false;
                        /* and continue Query execution */
-                       return (NULL);
+                       return NULL;
                }
                Assert(oldepq->rti != 0);
                /* push current PQ to freePQ stack */
@@ -2119,7 +2119,7 @@ lpqnext:;
                goto lpqnext;
        }
 
-       return (slot);
+       return slot;
 }
 
 static void
index 9d09c88978c5d1422bc4c2a7238cb9d69a9f0b74..2125ea2ee1e567904bc185c030377f558f51966f 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.60 2005/11/22 18:17:11 momjian Exp $
+ *       $PostgreSQL: pgsql/src/backend/libpq/be-secure.c,v 1.61 2006/01/11 08:43:12 neilc Exp $
  *
  *       Since the server static private key ($DataDir/server.key)
  *       will normally be stored unencrypted so that the database
@@ -486,7 +486,7 @@ my_SSL_set_fd(SSL *s, int fd)
        SSL_set_bio(s, bio, bio);
        ret = 1;
 err:
-       return (ret);
+       return ret;
 }
 
 /*
index 4bf2cd338728074f3ec8ed7c89ebea6aebe50ae9..7b2649522444bd1c86d66db2e1e7456dc57d3708 100644 (file)
@@ -11,7 +11,7 @@
  * Portions Copyright (c) 1994, Regents of the University of California
  *
  * IDENTIFICATION
- *     $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.62 2005/10/15 02:49:28 momjian Exp $
+ *     $PostgreSQL: pgsql/src/backend/utils/adt/like.c,v 1.63 2006/01/11 08:43:12 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -49,19 +49,19 @@ wchareq(char *p1, char *p2)
 
        /* Optimization:  quickly compare the first byte. */
        if (*p1 != *p2)
-               return (0);
+               return 0;
 
        p1_len = pg_mblen(p1);
        if (pg_mblen(p2) != p1_len)
-               return (0);
+               return 0;
 
        /* They are the same length */
        while (p1_len--)
        {
                if (*p1++ != *p2++)
-                       return (0);
+                       return 0;
        }
-       return (1);
+       return 1;
 }
 
 /*--------------------
@@ -91,7 +91,7 @@ iwchareq(char *p1, char *p2)
         * different characters
         */
        else if ((unsigned char) *p1 < CHARMAX || (unsigned char) *p2 < CHARMAX)
-               return (0);
+               return 0;
 
        /*
         * ok, p1 and p2 are both > CHARMAX, then they must be multibyte
index c974b633ca19fc8438a50e70641becfbb4864341..0c9bff2b8fe0c3ce6f9a409a9dd86fe87c3b50c8 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     PostgreSQL type definitions for MAC addresses.
  *
- *     $PostgreSQL: pgsql/src/backend/utils/adt/mac.c,v 1.35 2005/10/15 02:49:28 momjian Exp $
+ *     $PostgreSQL: pgsql/src/backend/utils/adt/mac.c,v 1.36 2006/01/11 08:43:12 neilc Exp $
  */
 
 #include "postgres.h"
@@ -194,7 +194,7 @@ text_macaddr(PG_FUNCTION_ARGS)
 
        result = DirectFunctionCall1(macaddr_in, CStringGetDatum(str));
 
-       return (result);
+       return result;
 }
 
 /*
index e3917960775761875d6976deed461918cdeca5bc..fa57567c6322c7efbcfecb0d6b522e224a8fc694 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     PostgreSQL type definitions for the INET and CIDR types.
  *
- *     $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.57 2005/12/25 02:14:17 momjian Exp $
+ *     $PostgreSQL: pgsql/src/backend/utils/adt/network.c,v 1.58 2006/01/11 08:43:12 neilc Exp $
  *
  *     Jon Postel RIP 16 Oct 1998
  */
@@ -898,7 +898,7 @@ bitncmp(void *l, void *r, int n)
        b = n / 8;
        x = memcmp(l, r, b);
        if (x)
-               return (x);
+               return x;
 
        lb = ((const u_char *) l)[b];
        rb = ((const u_char *) r)[b];
index 145343a881d26e87b26d693fb183be8f8c8039e6..0c5eaec66cc5399b2eed3fcaca1c01914afb95ba 100644 (file)
@@ -2,7 +2,7 @@
  * Encoding names and routines for work with it. All
  * in this file is shared bedween FE and BE.
  *
- * $PostgreSQL: pgsql/src/backend/utils/mb/encnames.c,v 1.26 2005/10/15 02:49:33 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/mb/encnames.c,v 1.27 2006/01/11 08:43:12 neilc Exp $
  */
 #ifdef FRONTEND
 #include "postgres_fe.h"
@@ -490,7 +490,7 @@ pg_char_to_encoding(const char *s)
        pg_encname *p = NULL;
 
        if (!s)
-               return (-1);
+               return -1;
 
        p = pg_char_to_encname_struct(s);
        return p ? p->encoding : -1;
index 0bbd48ecd215d35922bac820d34fa277e9a60e43..3313439eb71ed7233b0b8912511ea22cf19de1c9 100644 (file)
@@ -4,7 +4,7 @@
  * (currently mule internal code (mic) is used)
  * Tatsuo Ishii
  *
- * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.53 2006/01/11 06:59:22 neilc Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.54 2006/01/11 08:43:12 neilc Exp $
  */
 #include "postgres.h"
 
@@ -64,7 +64,7 @@ SetClientEncoding(int encoding, bool doit)
        MemoryContext oldcontext;
 
        if (!PG_VALID_FE_ENCODING(encoding))
-               return (-1);
+               return -1;
 
        /* Can't do anything during startup, per notes above */
        if (!backend_startup_complete)
@@ -196,7 +196,7 @@ int
 pg_get_client_encoding(void)
 {
        Assert(ClientEncoding);
-       return (ClientEncoding->encoding);
+       return ClientEncoding->encoding;
 }
 
 /*
@@ -206,7 +206,7 @@ const char *
 pg_get_client_encoding_name(void)
 {
        Assert(ClientEncoding);
-       return (ClientEncoding->name);
+       return ClientEncoding->name;
 }
 
 /*
@@ -483,7 +483,7 @@ pg_mbstrlen(const char *mbstr)
                mbstr += pg_mblen(mbstr);
                len++;
        }
-       return (len);
+       return len;
 }
 
 /* returns the length (counted in wchars) of a multibyte string
@@ -506,7 +506,7 @@ pg_mbstrlen_with_len(const char *mbstr, int limit)
                mbstr += l;
                len++;
        }
-       return (len);
+       return len;
 }
 
 /*
@@ -536,7 +536,7 @@ pg_mbcliplen(const char *mbstr, int len, int limit)
                len -= l;
                mbstr += l;
        }
-       return (clen);
+       return clen;
 }
 
 /*
@@ -563,7 +563,7 @@ pg_mbcharcliplen(const char *mbstr, int len, int limit)
                len -= l;
                mbstr += l;
        }
-       return (clen);
+       return clen;
 }
 
 void
@@ -586,14 +586,14 @@ int
 GetDatabaseEncoding(void)
 {
        Assert(DatabaseEncoding);
-       return (DatabaseEncoding->encoding);
+       return DatabaseEncoding->encoding;
 }
 
 const char *
 GetDatabaseEncodingName(void)
 {
        Assert(DatabaseEncoding);
-       return (DatabaseEncoding->name);
+       return DatabaseEncoding->name;
 }
 
 Datum
index a6b230e32bf10e3021c6d732a72666bfb08ba8bc..1a99dc9ca98d4ee602a433346a1752dac7665787 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 2000-2005, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.143 2005/12/18 02:17:16 petere Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.144 2006/01/11 08:43:12 neilc Exp $
  */
 
 /*----------------------------------------------------------------------
@@ -2169,7 +2169,7 @@ complete_from_list(const char *text, int state)
                casesensitive = false;
                list_index = 0;
                state++;
-               return (complete_from_list(text, state));
+               return complete_from_list(text, state);
        }
 
        /* If no more matches, return null. */
index 8204a0e1b792bc8fc5334af8f71ef80a305c5e6d..69db8d830cb7d3b9658e219eac08cf100e2a0468 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.324 2005/11/22 18:17:32 momjian Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-connect.c,v 1.325 2006/01/11 08:43:13 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2936,7 +2936,7 @@ PQsetClientEncoding(PGconn *conn, const char *encoding)
                status = 0;                             /* everything is ok */
        }
        PQclear(res);
-       return (status);
+       return status;
 }
 
 PGVerbosity
index e355968e4748ec2d9c97f253828fbbf797ad5493..2b324916df19d37b41cdf333ed5bbed5472718ba 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.177 2005/11/22 18:17:32 momjian Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-exec.c,v 1.178 2006/01/11 08:43:13 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2271,7 +2271,7 @@ PQsetnonblocking(PGconn *conn, int arg)
 
        /* early out if the socket is already in the state requested */
        if (barg == conn->nonblocking)
-               return (0);
+               return 0;
 
        /*
         * to guarantee constancy for flushing/query/result-polling behavior we
@@ -2281,11 +2281,11 @@ PQsetnonblocking(PGconn *conn, int arg)
         */
        /* if we are going from blocking to non-blocking flush here */
        if (pqFlush(conn))
-               return (-1);
+               return -1;
 
        conn->nonblocking = barg;
 
-       return (0);
+       return 0;
 }
 
 /*
@@ -2295,7 +2295,7 @@ PQsetnonblocking(PGconn *conn, int arg)
 int
 PQisnonblocking(const PGconn *conn)
 {
-       return (pqIsnonblocking(conn));
+       return pqIsnonblocking(conn);
 }
 
 /* try to force data out, really only useful for non-blocking users */
index d2caf667cd44cd9c07e46107e818f31d1162140c..c65cda28aa64043948007bb4e797e054d44170ef 100644 (file)
@@ -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;
 }
 
 
index 22d1863993e0f74441a52f011cac04c0f06adcf8..42afacef304a05d6e467b3dae7bf9b622d46370b 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol2.c,v 1.20 2005/11/22 18:17:33 momjian Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol2.c,v 1.21 2006/01/11 08:43:13 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1180,11 +1180,11 @@ pqEndcopy2(PGconn *conn)
         * and the flush fails
         */
        if (pqFlush(conn) && pqIsnonblocking(conn))
-               return (1);
+               return 1;
 
        /* non blocking connections may have to abort at this point. */
        if (pqIsnonblocking(conn) && PQisBusy(conn))
-               return (1);
+               return 1;
 
        /* Return to active duty */
        conn->asyncStatus = PGASYNC_BUSY;
index 80780900db9cd82c3bca90d0a0ec2d9bb125f816..259672ddc66a7ca90e716a51edc95ca9d61f6530 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.23 2005/11/22 18:17:33 momjian Exp $
+ *       $PostgreSQL: pgsql/src/interfaces/libpq/fe-protocol3.c,v 1.24 2006/01/11 08:43:13 neilc Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -1158,7 +1158,7 @@ pqEndcopy3(PGconn *conn)
         * and the flush fails
         */
        if (pqFlush(conn) && pqIsnonblocking(conn))
-               return (1);
+               return 1;
 
        /* Return to active duty */
        conn->asyncStatus = PGASYNC_BUSY;
@@ -1172,7 +1172,7 @@ pqEndcopy3(PGconn *conn)
         * with the CopyDone; are there corner cases where that doesn't happen?)
         */
        if (pqIsnonblocking(conn) && PQisBusy(conn))
-               return (1);
+               return 1;
 
        /* Wait for the completion response */
        result = PQgetResult(conn);
index 5e8ad6ee7074f6e06153125d43ebf0f8c9aa8212..a988ad431b2d2c8457380d6cdf3688a920cef6e2 100644 (file)
@@ -102,6 +102,6 @@ c_overpaid(HeapTupleHeader t,       /* the current instance of EMP */
 
        salary = DatumGetInt32(GetAttributeByName(t, "salary", &isnull));
        if (isnull)
-               return (false);
+               return false;
        return salary > limit;
 }