1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-07 19:06:32 +03:00

This patch properly sets the prototype for the on_shmem_exit and

on_proc_exit functions, and adjust all other related code to use
the proper types too.

by Kurt Roeckx
This commit is contained in:
Peter Eisentraut
2003-12-12 18:45:10 +00:00
parent 7ac2f11c14
commit 2afacfc403
15 changed files with 45 additions and 45 deletions

View File

@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.139 2003/12/01 21:59:25 momjian Exp $
* $PostgreSQL: pgsql/src/backend/storage/lmgr/proc.c,v 1.140 2003/12/12 18:45:09 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -84,8 +84,8 @@ static volatile bool deadlock_timeout_active = false;
static struct timeval statement_fin_time;
static void ProcKill(void);
static void DummyProcKill(void);
static void ProcKill(int code, Datum arg);
static void DummyProcKill(int code, Datum arg);
static bool CheckStatementTimeout(void);
@@ -406,7 +406,7 @@ ProcReleaseLocks(bool isCommit)
* this process. Release any of its held LW locks.
*/
static void
ProcKill(void)
ProcKill(int code, Datum arg)
{
/* use volatile pointer to prevent code rearrangement */
volatile PROC_HDR *procglobal = ProcGlobal;
@@ -455,7 +455,7 @@ ProcKill(void)
* as not-in-use.
*/
static void
DummyProcKill(void)
DummyProcKill(int code, Datum arg)
{
PGPROC *dummyproc;