From 196a44106ef10b343d06be2c130cba4037e85aec Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 12 Jun 2019 13:34:23 -0700 Subject: libstage: cast lookup result silencing const warn --- src/stage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/stage.c') diff --git a/src/stage.c b/src/stage.c index 2b0ee20..a1d081d 100644 --- a/src/stage.c +++ b/src/stage.c @@ -381,7 +381,7 @@ stage_t * stage_lookup_key(stage_t *stage, void *key) assert(stage); if (stage->lookup) { - stage_t *hit = stage->lookup(stage, stage->object, key); + stage_t *hit = (stage_t *)stage->lookup(stage, stage->object, key); if (hit) return hit; -- cgit v1.2.3