Skip to content

Commit e99e4ba

Browse files
committed
sprintf "...%d...", ... (int)getpid(), ...
^^^^^
1 parent ccc7742 commit e99e4ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/sort/psort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.13 1997/08/12 22:55:02 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/sort/Attic/psort.c,v 1.14 1997/08/14 05:04:38 vadim Exp $
1111
*
1212
* NOTES
1313
* Sorts the first relation into the second relation.
@@ -749,7 +749,7 @@ gettape()
749749

750750
tp = (struct tapelst *)palloc((unsigned)sizeof (struct tapelst));
751751

752-
sprintf(uniqueName, "%spg_psort.%d.%d", TEMPDIR, getpid(), uniqueFileId);
752+
sprintf(uniqueName, "%spg_psort.%d.%d", TEMPDIR, (int)getpid(), uniqueFileId);
753753
uniqueFileId++;
754754

755755
tapeinit = 1;

0 commit comments

Comments
 (0)