mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Make functions static where possible, enclose unused functions in #ifdef NOT_USED.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user