diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-10-14 20:23:46 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-10-14 20:23:46 +0000 |
| commit | 5c267325ecd33ac76a674a789b0f0062eeeeb313 (patch) | |
| tree | 19b9394cee4d57f43bd0f86c45399a398ee6f97b /src/backend/access/transam/xlog.c | |
| parent | 130972b4e254f2dd578a7f90f0eb144807523519 (diff) | |
| download | postgresql-5c267325ecd33ac76a674a789b0f0062eeeeb313.tar.gz | |
Add 'int' cast for getpid() because some Solaris releases return long
for getpid().
Diffstat (limited to 'src/backend/access/transam/xlog.c')
| -rw-r--r-- | src/backend/access/transam/xlog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 52b3066a8d..3b1f1a4bec 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.173 2004/10/12 21:54:35 petere Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.174 2004/10/14 20:23:43 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1513,7 +1513,7 @@ XLogFileInit(uint32 log, uint32 seg, * up pre-creating an extra log segment. That seems OK, and better * than holding the lock throughout this lengthy process. */ - snprintf(tmppath, MAXPGPATH, "%s/xlogtemp.%d", XLogDir, getpid()); + snprintf(tmppath, MAXPGPATH, "%s/xlogtemp.%d", XLogDir, (int)getpid()); unlink(tmppath); @@ -1633,7 +1633,7 @@ XLogFileCopy(uint32 log, uint32 seg, /* * Copy into a temp file name. */ - snprintf(tmppath, MAXPGPATH, "%s/xlogtemp.%d", XLogDir, getpid()); + snprintf(tmppath, MAXPGPATH, "%s/xlogtemp.%d", XLogDir, (int)getpid()); unlink(tmppath); @@ -2898,7 +2898,7 @@ writeTimeLineHistory(TimeLineID newTLI, TimeLineID parentTLI, /* * Write into a temp file name. */ - snprintf(tmppath, MAXPGPATH, "%s/xlogtemp.%d", XLogDir, getpid()); + snprintf(tmppath, MAXPGPATH, "%s/xlogtemp.%d", XLogDir, (int)getpid()); unlink(tmppath); |
