Skip to content
Snippets Groups Projects
Commit cd54eb2b authored by Tom Lane's avatar Tom Lane
Browse files

Fix possible portability problem, per buildfarm warnings.

parent c11b8dcd
No related branches found
No related tags found
No related merge requests found
/* /*
* $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 * pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii * written by Tatsuo Ishii
...@@ -1442,7 +1442,7 @@ main(int argc, char **argv) ...@@ -1442,7 +1442,7 @@ main(int argc, char **argv)
{ {
char logpath[64]; char logpath[64];
snprintf(logpath, 64, "pgbench_log.%d", getpid()); snprintf(logpath, 64, "pgbench_log.%d", (int) getpid());
LOGFILE = fopen(logpath, "w"); LOGFILE = fopen(logpath, "w");
if (LOGFILE == NULL) if (LOGFILE == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment