]> granicus.if.org Git - postgresql/commitdiff
Adjustments for Win32-specific rename code, and add include file.
authorBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2004 16:37:46 +0000 (16:37 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 2 Feb 2004 16:37:46 +0000 (16:37 +0000)
src/backend/commands/user.c
src/backend/postmaster/pgstat.c

index 33eb3c39b2fac26038c1faa7f0a1deab55c4b3ce..d0e39af9c1a7211cb4869b8deae5ca21d4b3f5d4 100644 (file)
@@ -6,7 +6,7 @@
  * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.134 2004/02/02 00:17:21 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/user.c,v 1.135 2004/02/02 16:37:46 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -140,7 +140,7 @@ write_group_file(Relation grel)
        tempname = (char *) palloc(bufsize);
        snprintf(tempname, bufsize, "%s.%d", filename, MyProcPid);
 #if defined(WIN32) || defined(CYGWIN)
-       filename = repalloc(filename, strlen(filename) + 1 + strlen(".new");
+       filename = repalloc(filename, strlen(filename) + 1 + strlen(".new"));
        strcat(filename, ".new");
 #endif
        
@@ -291,7 +291,7 @@ write_user_file(Relation urel)
        tempname = (char *) palloc(bufsize);
        snprintf(tempname, bufsize, "%s.%d", filename, MyProcPid);
 #if defined(WIN32) || defined(CYGWIN)
-       filename = repalloc(filename, strlen(filename) + 1 + strlen(".new");
+       filename = repalloc(filename, strlen(filename) + 1 + strlen(".new"));
        strcat(filename, ".new");
 #endif
 
index 606240c86eb20ae5c14e631315084c5e9067b3bd..9ea4cd87564256fbac8fa9eaf8c096f3388c66d6 100644 (file)
@@ -13,7 +13,7 @@
  *
  *     Copyright (c) 2001-2003, PostgreSQL Global Development Group
  *
- *     $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.57 2004/01/28 21:02:40 tgl Exp $
+ *     $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.58 2004/02/02 16:37:46 momjian Exp $
  * ----------
  */
 #include "postgres.h"
@@ -45,6 +45,7 @@
 #include "storage/backendid.h"
 #include "storage/ipc.h"
 #include "storage/pg_shmem.h"
+#include "tcop/tcopprot.h"
 #include "utils/rel.h"
 #include "utils/hsearch.h"
 #include "utils/ps_status.h"