提交 b454138e 编写于 作者: L LiFeng 提交者: lifeng68

storage: fix compile error

Signed-off-by: NLiFeng <lifeng68@huawei.com>
上级 f75abd02
......@@ -168,14 +168,14 @@ out:
return ret;
}
storage_image *storage_img_get(const char *img_id)
const storage_image *storage_img_get(const char *img_id)
{
if (img_id == NULL) {
ERROR("Invalid arguments for image get");
return NULL;
}
return image_store_lookup(img_id);
return image_store_get_image(img_id);
}
int storage_img_set_big_data(const char *img_id, const char *key, const char *val)
......
......@@ -72,7 +72,7 @@ int storage_layer_try_repair_lowers(const char *id, const char *last_layer_id);
int storage_img_create(const char *id, const char *parent_id, const char *metadata,
struct storage_img_create_options *opts);
storage_image *storage_img_get(const char *img_id);
const storage_image *storage_img_get(const char *img_id);
int storage_img_set_big_data(const char *img_id, const char *key, const char *val);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册