summaryrefslogtreecommitdiff
path: root/src/driver/amgc_amain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/amgc_amain.c')
-rw-r--r--src/driver/amgc_amain.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/driver/amgc_amain.c b/src/driver/amgc_amain.c
index 096b960..9325a4f 100644
--- a/src/driver/amgc_amain.c
+++ b/src/driver/amgc_amain.c
@@ -47,12 +47,14 @@ static ssize_t amgc_version(struct amgc_driver_ctx * dctx, int fdout)
verclr[4],verinfo->commit,verclr[5]);
}
-static void amgc_perform_unit_actions(struct amgc_unit_ctx * uctx)
+static void amgc_perform_unit_actions(
+ const struct amgc_driver_ctx * dctx,
+ struct amgc_unit_ctx * uctx)
{
const struct amgc_action * action;
for (action=uctx->cctx->actions; action->type; action++)
- amgc_perform_unit_action(uctx,action,0,stdout);
+ amgc_perform_unit_action(dctx,uctx,action,0);
}
static int amgc_exit(struct amgc_driver_ctx * dctx, int ret)
@@ -85,7 +87,7 @@ int amgc_main(int argc, char ** argv, char ** envp, const struct amgc_fd_ctx * f
for (unit=dctx->units; *unit && !dctx->errv[0]; unit++) {
if (!(amgc_get_unit_ctx(dctx,*unit,&uctx))) {
- amgc_perform_unit_actions(uctx);
+ amgc_perform_unit_actions(dctx,uctx);
amgc_free_unit_ctx(uctx);
}
}