From 4b94b0fe00df801339c965dc5d6add8173c20eec Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 9 May 2019 19:57:59 -0700 Subject: libstage: return values from getters It appears at some point some of the getters were lost, or maybe were never implemented. Regardless, what's there uses result pointer parameters and it's more annoying to use that way. Just return the values directly, not like there are error conditions to distinguish. --- src/stage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stage.c') diff --git a/src/stage.c b/src/stage.c index d05c842..afe4626 100644 --- a/src/stage.c +++ b/src/stage.c @@ -113,11 +113,11 @@ void stage_set_object(stage_t *stage, void *object) } -void stage_get_object(const stage_t *stage, void **res_object) +void * stage_get_object(const stage_t *stage) { assert(stage); - *res_object = stage->object; + return stage->object; } -- cgit v1.2.3