diff options
author | Bruce Momjian <bruce@momjian.us> | 1997-08-19 21:40:56 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1997-08-19 21:40:56 +0000 |
commit | 1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b (patch) | |
tree | 8d3a5dac9207f22c3afb8afb563d54f88774deb3 /src/backend/utils/init/postinit.c | |
parent | b992e200b8872ecb6652ec85111995f8d4c5aee0 (diff) | |
download | postgresql-1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b.tar.gz postgresql-1d8bbfd2e7cfb72cbe4d5c5d4fa650a28dedac0b.zip |
Make functions static where possible, enclose unused functions in #ifdef NOT_USED.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 253814f33da..f338cc83c70 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.10 1997/08/12 22:54:54 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.11 1997/08/19 21:35:50 momjian Exp $ * * NOTES * InitPostgres() is the function called from PostgresMain @@ -71,6 +71,11 @@ #include "port-protos.h" #include "libpq/libpq-be.h" +static void InitCommunication(void); +static void InitMyDatabaseId(void); +static void InitStdio(void); +static void InitUserid(void); + static IPCKey PostgresIpcKey; @@ -108,7 +113,7 @@ static IPCKey PostgresIpcKey; * database directory but before we open any relations. * -------------------------------- */ -void +static void InitMyDatabaseId() { int dbfd; @@ -334,7 +339,7 @@ DoChdirAndInitDatabaseNameAndPath(char *name) { * initializes crap associated with the user id. * -------------------------------- */ -void +static void InitUserid() { setuid(geteuid()); @@ -351,7 +356,7 @@ InitUserid() * This does not set MyBackendId. MyBackendTag is set, however. * -------------------------------- */ -void +static void InitCommunication() { char *postid; @@ -460,7 +465,7 @@ InitCommunication() * they all seem to do stuff associated with io. * -------------------------------- */ -void +static void InitStdio() { DebugFileOpen(); |