1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Make functions static where possible, enclose unused functions in #ifdef NOT_USED.

This commit is contained in:
Bruce Momjian
1997-08-19 21:40:56 +00:00
parent b992e200b8
commit 1d8bbfd2e7
186 changed files with 1114 additions and 1048 deletions

View File

@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.7 1997/08/18 20:53:18 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/smgr.c,v 1.8 1997/08/19 21:33:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -23,6 +23,8 @@
#include "utils/rel.h"
#include "utils/palloc.h"
static void smgrshutdown(int dummy);
typedef struct f_smgr {
int (*smgr_init)(); /* may be NULL */
int (*smgr_shutdown)(); /* may be NULL */
@@ -100,7 +102,7 @@ smgrinit()
return (SM_SUCCESS);
}
void
static void
smgrshutdown(int dummy)
{
int i;
@@ -373,6 +375,7 @@ smgrcommit()
return (SM_SUCCESS);
}
#ifdef NOT_USED
int
smgrabort()
{
@@ -387,6 +390,7 @@ smgrabort()
return (SM_SUCCESS);
}
#endif
bool
smgriswo(int16 smgrno)