Commit dccb56bf authored by Nils Goroll's avatar Nils Goroll

create a char * argument for umem_cache_create()

required after the constification in
8f83087f

I have no idea why the umem authors did not make this argument
a const, they call strncpy on it
parent 0a1cabfe
......@@ -392,6 +392,7 @@ static void v_matchproto_(storage_open_f)
smu_open(struct stevedore *st)
{
struct smu_sc *smu_sc;
char ident[strlen(st->ident) + 1];
ASSERT_CLI();
st->lru = LRU_Alloc();
......@@ -405,7 +406,8 @@ smu_open(struct stevedore *st)
smu_open_init();
smu_sc->smu_cache = umem_cache_createf(st->ident,
AN(strcpy(ident, st->ident));
smu_sc->smu_cache = umem_cache_createf(ident,
sizeof(struct smu),
0, // align
smu_smu_constructor,
......
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