]> granicus.if.org Git - postgresql/commitdiff
Small cleanups.
authorBruce Momjian <bruce@momjian.us>
Tue, 30 Mar 1999 01:37:28 +0000 (01:37 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 30 Mar 1999 01:37:28 +0000 (01:37 +0000)
src/backend/access/transam/transam.c
src/backend/access/transam/transsup.c
src/backend/commands/command.c
src/backend/executor/spi.c
src/include/c.h

index ffd15225cf64e735253e73c78dc74f5bace4c723..35f07e6185a75e1ffc0943811d993302452b6ade 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.24 1999/02/21 03:48:28 scrappy Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.25 1999/03/30 01:37:21 momjian Exp $
  *
  * NOTES
  *       This file contains the high level access-method interface to the
@@ -174,8 +174,7 @@ TransactionLogTest(TransactionId transactionId, /* transaction id to test */
        {
                TransactionIdStore(transactionId, &cachedTestXid);
                cachedTestXidStatus = xidstatus;
-               return (bool)
-                       (status == xidstatus);
+               return (bool) (status == xidstatus);
        }
 
        /* ----------------
index d6be0ac033fda8bfcbe72014c2f9cbe11b45376d..a12b1ade2830d14499ca3cfed02a7983b37f61ad 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/transsup.c,v 1.20 1999/02/13 23:14:47 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/access/transam/Attic/transsup.c,v 1.21 1999/03/30 01:37:21 momjian Exp $
  *
  * NOTES
  *       This file contains support functions for the high
@@ -211,8 +211,7 @@ TransBlockGetXidStatus(Block tblock,
         *      return the transaction status to the caller
         * ----------------
         */
-       return (XidStatus)
-               (bit1 | bit2);
+       return (XidStatus) (bit1 | bit2);
 }
 
 /* --------------------------------
index 119343d3aacfc0a986e1ab61d8340e1869170abe..9f2d7b43172e5050c2cfb64025ad66b41af381bb 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.41 1999/03/23 05:40:59 momjian Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.42 1999/03/30 01:37:22 momjian Exp $
  *
  * NOTES
  *       The PortalExecutorHeapMemory crap needs to be eliminated
@@ -71,8 +71,7 @@ PortalCleanup(Portal portal)
         * ----------------
         */
        context = MemoryContextSwitchTo((MemoryContext) PortalGetHeapMemory(portal));
-       PortalExecutorHeapMemory = (MemoryContext)
-               PortalGetHeapMemory(portal);
+       PortalExecutorHeapMemory = (MemoryContext) PortalGetHeapMemory(portal);
 
        /* ----------------
         *      tell the executor to shutdown the query
@@ -210,7 +209,7 @@ PerformPortalFetch(char *name,
         * ----------------
         */
        MemoryContextSwitchTo(
-                        (MemoryContext) PortalGetHeapMemory(GetPortalByName(NULL)));
+                               (MemoryContext) PortalGetHeapMemory(GetPortalByName(NULL)));
 }
 
 /* --------------------------------
index 519d119bdcaa3e44722a90c14e056b55e43b4906..d3064128a4373ed80597f9ab37c810d03a97d974 100644 (file)
@@ -3,7 +3,7 @@
  * spi.c
  *                             Server Programming Interface
  *
- * $Id: spi.c,v 1.35 1999/03/09 13:39:00 scrappy Exp $
+ * $Id: spi.c,v 1.36 1999/03/30 01:37:23 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -49,7 +49,7 @@ extern void ShowUsage(void);
 int
 SPI_connect()
 {
-       char                                                                    pname[64];
+       char                                    pname[64];
        PortalVariableMemory    pvmem;
 
        /*
index b73396f92fca9f60f5844839de49d326ae7b6c2b..d3a2a0eea485987532f55a9c1d196757df35e5f7 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: c.h,v 1.52 1999/03/09 13:39:01 scrappy Exp $
+ * $Id: c.h,v 1.53 1999/03/30 01:37:28 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include <errno.h>
 #endif
 
-#ifdef __CYGWIN32__
-#include <errno.h>
-#endif
-
 /* ----------------------------------------------------------------
  *                             Section 1:      bool, true, false, TRUE, FALSE
  * ----------------------------------------------------------------