]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Staticized some variables and functions.
authorMartin Mares <mj@ucw.cz>
Sun, 24 May 1998 14:46:20 +0000 (14:46 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 24 May 1998 14:46:20 +0000 (14:46 +0000)
lib/mempool.c
lib/resource.c
lib/slab.c

index d2f2c092d4cc27bf5cc1ae923ab0d32840246b29..8bf428e5f97867b03d90183f111aab6298221a86 100644 (file)
@@ -27,7 +27,7 @@ struct mempool {
 void mp_free(resource *);
 void mp_dump(resource *);
 
-struct resclass mp_class = {
+static struct resclass mp_class = {
   "MemPool",
   sizeof(struct mempool),
   mp_free,
index 2806a90a10479dfdd8e6e581b097d710b0d01090..fe879cf6cdc1ae734496fbfa16dfd8732d41b4d8 100644 (file)
@@ -17,8 +17,8 @@ struct pool {
   list inside;
 };
 
-void pool_dump(resource *);
-void pool_free(resource *);
+static void pool_dump(resource *);
+static void pool_free(resource *);
 
 static struct resclass pool_class = {
   "Pool",
@@ -39,7 +39,7 @@ rp_new(pool *p)
   return z;
 }
 
-void
+static void
 pool_free(resource *P)
 {
   pool *p = (pool *) P;
@@ -54,7 +54,7 @@ pool_free(resource *P)
     }
 }
 
-void
+static void
 pool_dump(resource *P)
 {
   pool *p = (pool *) P;
@@ -125,18 +125,18 @@ struct mblock {
   byte data[0];
 };
 
-void mbl_free(resource *r)
+static void mbl_free(resource *r)
 {
 }
 
-void mbl_debug(resource *r)
+static void mbl_debug(resource *r)
 {
   struct mblock *m = (struct mblock *) r;
 
   debug("(size=%d)\n", m->size);
 }
 
-struct resclass mb_class = {
+static struct resclass mb_class = {
   "Memory",
   0,
   mbl_free,
index e71c7de2f70181e609ff98239ee1369d52bbd7ba..ad691f7193d0fa936a12e43b421c896c6615bba0 100644 (file)
@@ -27,10 +27,10 @@ struct slab {
   list objs;
 };
 
-void slab_free(resource *r);
-void slab_dump(resource *r);
+static void slab_free(resource *r);
+static void slab_dump(resource *r);
 
-struct resclass sl_class = {
+static struct resclass sl_class = {
   "Slab",
   sizeof(struct slab),
   slab_free,
@@ -64,7 +64,7 @@ sl_free(slab *s, void *oo)
   xfree(o);
 }
 
-void
+static void
 slab_free(resource *r)
 {
   slab *s = (slab *) r;
@@ -74,7 +74,7 @@ slab_free(resource *r)
     xfree(o);
 }
 
-void
+static void
 slab_dump(resource *r)
 {
   slab *s = (slab *) r;