Skip to content

Commit cd54eb2

Browse files
committed
Fix possible portability problem, per buildfarm warnings.
1 parent c11b8dc commit cd54eb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.68 2007/07/06 20:17:02 wieck Exp $
2+
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.69 2007/07/15 22:34:26 tgl Exp $
33
*
44
* pgbench: a simple benchmark program for PostgreSQL
55
* written by Tatsuo Ishii
@@ -1442,7 +1442,7 @@ main(int argc, char **argv)
14421442
{
14431443
char logpath[64];
14441444

1445-
snprintf(logpath, 64, "pgbench_log.%d", getpid());
1445+
snprintf(logpath, 64, "pgbench_log.%d", (int) getpid());
14461446
LOGFILE = fopen(logpath, "w");
14471447

14481448
if (LOGFILE == NULL)

0 commit comments

Comments
 (0)