diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-15 22:34:26 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-07-15 22:34:26 +0000 |
commit | cd54eb2b5b990f206644e526f9fe3e1f17d303ba (patch) | |
tree | bbd1301fff3fd48b10de82c567c22d69679e7c41 | |
parent | c11b8dcdbba12ba77520a7486c012945a335dbd3 (diff) | |
download | postgresql-cd54eb2b5b990f206644e526f9fe3e1f17d303ba.tar.gz postgresql-cd54eb2b5b990f206644e526f9fe3e1f17d303ba.zip |
Fix possible portability problem, per buildfarm warnings.
-rw-r--r-- | contrib/pgbench/pgbench.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index ae8bfaa167f..f682644f56c 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -1,5 +1,5 @@ /* - * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.68 2007/07/06 20:17:02 wieck Exp $ + * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.69 2007/07/15 22:34:26 tgl Exp $ * * pgbench: a simple benchmark program for PostgreSQL * written by Tatsuo Ishii @@ -1442,7 +1442,7 @@ main(int argc, char **argv) { char logpath[64]; - snprintf(logpath, 64, "pgbench_log.%d", getpid()); + snprintf(logpath, 64, "pgbench_log.%d", (int) getpid()); LOGFILE = fopen(logpath, "w"); if (LOGFILE == NULL) |