retire PUBLIC, PRIVATE and FORWARD

This commit is contained in:
Ben Gras
2012-03-25 20:25:53 +02:00
parent 6a73e85ad1
commit 7336a67dfe
603 changed files with 5776 additions and 5779 deletions

View File

@@ -5,12 +5,12 @@
#include <stdlib.h>
#include <string.h>
FORWARD struct buf *new_block(dev_t dev, ino_t inum);
static struct buf *new_block(dev_t dev, ino_t inum);
/*===========================================================================*
* buf_pool *
*===========================================================================*/
PUBLIC void buf_pool(void)
void buf_pool(void)
{
/* Initialize the buffer pool. */
@@ -23,7 +23,7 @@ PUBLIC void buf_pool(void)
/*===========================================================================*
* get_block *
*===========================================================================*/
PUBLIC struct buf *get_block(dev_t dev, ino_t inum)
struct buf *get_block(dev_t dev, ino_t inum)
{
struct buf *bp = front;
@@ -43,7 +43,7 @@ PUBLIC struct buf *get_block(dev_t dev, ino_t inum)
/*===========================================================================*
* new_block *
*===========================================================================*/
PRIVATE struct buf *new_block(dev_t dev, ino_t inum)
static struct buf *new_block(dev_t dev, ino_t inum)
{
/* Allocate a new buffer and add it to the double linked buffer list */
struct buf *bp;
@@ -77,7 +77,7 @@ PRIVATE struct buf *new_block(dev_t dev, ino_t inum)
/*===========================================================================*
* put_block *
*===========================================================================*/
PUBLIC void put_block(dev_t dev, ino_t inum)
void put_block(dev_t dev, ino_t inum)
{
struct buf *bp;