diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2003-12-12 18:45:10 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2003-12-12 18:45:10 +0000 |
commit | 2afacfc403d439261b7a60c73e164423bc63bbc6 (patch) | |
tree | 5e49c4e5d15ad2041c31d38d3ff3e59d6b1e4e00 /src/backend/port/ipc_test.c | |
parent | 7ac2f11c14fb5617e5b358a41a7bb3ad91b92b65 (diff) | |
download | postgresql-2afacfc403d439261b7a60c73e164423bc63bbc6.tar.gz postgresql-2afacfc403d439261b7a60c73e164423bc63bbc6.zip |
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
Diffstat (limited to 'src/backend/port/ipc_test.c')
-rw-r--r-- | src/backend/port/ipc_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/port/ipc_test.c b/src/backend/port/ipc_test.c index 8896414f51e..fef9f282f30 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"); |