summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/verto/libverto.exports1
-rw-r--r--src/util/verto/verto.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/util/verto/libverto.exports b/src/util/verto/libverto.exports
index dcf3956963..2f9b1ee2ae 100644
--- a/src/util/verto/libverto.exports
+++ b/src/util/verto/libverto.exports
@@ -19,6 +19,7 @@ verto_get_signal
verto_get_supported_types
verto_get_type
verto_new
+verto_reinitialize
verto_run
verto_run_once
verto_set_default
diff --git a/src/util/verto/verto.c b/src/util/verto/verto.c
index 98cc30351a..0f015d8968 100644
--- a/src/util/verto/verto.c
+++ b/src/util/verto/verto.c
@@ -561,7 +561,7 @@ verto_reinitialize(verto_ctx *ctx)
/* Delete all events, but keep around the forkable ev structs */
for (tmp = ctx->events; tmp; tmp = next) {
- next = ctx->events->next;
+ next = tmp->next;
if (tmp->flags & VERTO_EV_FLAG_REINITIABLE)
ctx->funcs.ctx_del(ctx->modpriv, tmp, tmp->modpriv);
@@ -575,7 +575,7 @@ verto_reinitialize(verto_ctx *ctx)
/* Recreate events that were marked forkable */
for (tmp = ctx->events; tmp; tmp = tmp->next) {
tmp->actual = tmp->flags;
- tmp->modpriv = ctx->funcs.ctx_add(ctx, tmp, &tmp->actual);
+ tmp->modpriv = ctx->funcs.ctx_add(ctx->modpriv, tmp, &tmp->actual);
assert(tmp->modpriv);
}
}