From 5df29c80de9e3a64771bb83ba03abe0219cb9e9a Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Thu, 29 Aug 2019 12:59:39 -0400 Subject: [PATCH] Update sample (cache name string as array) Signed-off-by: Adam Rutkowski --- example/simple/src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/example/simple/src/main.c b/example/simple/src/main.c index 9cd3506..8024ccf 100644 --- a/example/simple/src/main.c +++ b/example/simple/src/main.c @@ -91,7 +91,7 @@ static void simple_complete(ocf_cache_t cache, void *priv, int error) */ int initialize_cache(ocf_ctx_t ctx, ocf_cache_t *cache) { - struct ocf_mngt_cache_config cache_cfg = { }; + struct ocf_mngt_cache_config cache_cfg = { .name = "cache1" }; struct ocf_mngt_cache_device_config device_cfg = { }; struct cache_priv *cache_priv; struct simple_context context; @@ -106,7 +106,6 @@ int initialize_cache(ocf_ctx_t ctx, ocf_cache_t *cache) /* Cache configuration */ ocf_mngt_cache_config_set_default(&cache_cfg); cache_cfg.metadata_volatile = true; - cache_cfg.name = "cache1"; /* Cache deivce (volume) configuration */ ocf_mngt_cache_device_config_set_default(&device_cfg);