summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-10-14 20:23:46 +0000
committerBruce Momjian <bruce@momjian.us>2004-10-14 20:23:46 +0000
commit5c267325ecd33ac76a674a789b0f0062eeeeb313 (patch)
tree19b9394cee4d57f43bd0f86c45399a398ee6f97b /src/bin/psql/command.c
parent130972b4e254f2dd578a7f90f0eb144807523519 (diff)
Add 'int' cast for getpid() because some Solaris releases return long
for getpid().
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 10b62276854..998a0027946 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.127 2004/10/09 02:46:41 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.128 2004/10/14 20:23:46 momjian Exp $
*/
#include "postgres_fe.h"
#include "command.h"
@@ -1133,7 +1133,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
const char *tmpdirenv = getenv("TMPDIR");
snprintf(fnametmp, sizeof(fnametmp), "%s/psql.edit.%d.%d",
- tmpdirenv ? tmpdirenv : "/tmp", geteuid(), getpid());
+ tmpdirenv ? tmpdirenv : "/tmp", geteuid(), (int)getpid());
#else
GetTempFileName(".", "psql", 0, fnametmp);
#endif