diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-10-09 02:46:42 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-10-09 02:46:42 +0000 |
commit | 67608a393bf36990e4bebefdc4514db1321764ef (patch) | |
tree | 67db8e3ec552ed199877d644f41cebaf881607cf /src/bin/psql/command.c | |
parent | b3723aeb1fe8b08db91568c6bddaafaf90e58688 (diff) |
Make getpid() use %d consistently for printing.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 3d8752a8888..10b62276854 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.126 2004/10/07 15:21:56 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.127 2004/10/09 02:46:41 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -1132,9 +1132,8 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf) #ifndef WIN32 const char *tmpdirenv = getenv("TMPDIR"); - snprintf(fnametmp, sizeof(fnametmp), "%s/psql.edit.%ld.%ld", - tmpdirenv ? tmpdirenv : "/tmp", - (long) geteuid(), (long) getpid()); + snprintf(fnametmp, sizeof(fnametmp), "%s/psql.edit.%d.%d", + tmpdirenv ? tmpdirenv : "/tmp", geteuid(), getpid()); #else GetTempFileName(".", "psql", 0, fnametmp); #endif |