Commit e10a410d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make default_oc_methods static to stevedore.c

parent 6bf50b29
...@@ -363,8 +363,6 @@ struct objcore_methods { ...@@ -363,8 +363,6 @@ struct objcore_methods {
getlru_f *getlru; getlru_f *getlru;
}; };
extern struct objcore_methods default_oc_methods;
struct objcore { struct objcore {
unsigned magic; unsigned magic;
#define OBJCORE_MAGIC 0x4d301302 #define OBJCORE_MAGIC 0x4d301302
......
...@@ -53,6 +53,7 @@ static VTAILQ_HEAD(, stevedore) stevedores = ...@@ -53,6 +53,7 @@ static VTAILQ_HEAD(, stevedore) stevedores =
static const struct stevedore * volatile stv_next; static const struct stevedore * volatile stv_next;
static struct stevedore *stv_transient; static struct stevedore *stv_transient;
static struct objcore_methods default_oc_methods;
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
*/ */
...@@ -339,7 +340,7 @@ default_oc_getlru(const struct objcore *oc) ...@@ -339,7 +340,7 @@ default_oc_getlru(const struct objcore *oc)
return (o->objstore->stevedore->lru); return (o->objstore->stevedore->lru);
} }
struct objcore_methods default_oc_methods = { static struct objcore_methods default_oc_methods = {
.getobj = default_oc_getobj, .getobj = default_oc_getobj,
.freeobj = default_oc_freeobj, .freeobj = default_oc_freeobj,
.getlru = default_oc_getlru, .getlru = default_oc_getlru,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment