1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Add 'int' cast for getpid() because some Solaris releases return long

for getpid().
This commit is contained in:
Bruce Momjian
2004-10-14 20:23:46 +00:00
parent 130972b4e2
commit 5c267325ec
5 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.23 2004/10/09 02:46:42 momjian Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.24 2004/10/14 20:23:46 momjian Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@ -253,7 +253,7 @@ ECPGlog(const char *format,...)
return;
}
sprintf(f, "[%d]: %s", getpid(), format);
sprintf(f, "[%d]: %s", (int)getpid(), format);
va_start(ap, format);
vfprintf(debugstream, f, ap);