From 2afacfc403d439261b7a60c73e164423bc63bbc6 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 12 Dec 2003 18:45:10 +0000 Subject: 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 --- src/backend/port/ipc_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/port/ipc_test.c') diff --git a/src/backend/port/ipc_test.c b/src/backend/port/ipc_test.c index 8896414f51..fef9f282f3 100644 --- a/src/backend/port/ipc_test.c +++ b/src/backend/port/ipc_test.c @@ -21,7 +21,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.11 2003/11/29 19:51:54 pgsql Exp $ + * $PostgreSQL: pgsql/src/backend/port/ipc_test.c,v 1.12 2003/12/12 18:45:09 petere Exp $ * *------------------------------------------------------------------------- */ @@ -62,7 +62,7 @@ bool assert_enabled = true; static struct ONEXIT { - void (*function) (); + void (*function) (int code, Datum arg); Datum arg; } on_proc_exit_list[MAX_ON_EXITS], on_shmem_exit_list[MAX_ON_EXITS]; @@ -89,7 +89,7 @@ shmem_exit(int code) } void - on_shmem_exit(void (*function) (), Datum arg) +on_shmem_exit(void (*function) (int code, Datum arg), Datum arg) { if (on_shmem_exit_index >= MAX_ON_EXITS) elog(FATAL, "out of on_shmem_exit slots"); -- cgit v1.2.1