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:
@ -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);
|
||||
|
Reference in New Issue
Block a user