aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-17 15:47:32 +0200
committerDavid Robillard <d@drobilla.net>2019-10-17 15:47:32 +0200
commit5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c (patch)
tree88fadcfab577b534c7e07cb7a72ca318e5821150 /src/jalv.c
parentb4a3042da84420b80db0c81b90cd2df40a18f1c9 (diff)
downloadjalv-5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c.tar.gz
jalv-5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c.tar.bz2
jalv-5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c.zip
Make jalv_update return int
This avoids some warnings about conversion between incompatible function pointer types.
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jalv.c b/src/jalv.c
index 1477040..e697785 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -630,13 +630,13 @@ jalv_run(Jalv* jalv, uint32_t nframes)
return send_ui_updates;
}
-bool
+int
jalv_update(Jalv* jalv)
{
/* Check quit flag and close if set. */
if (zix_sem_try_wait(&jalv->done)) {
jalv_close_ui(jalv);
- return false;
+ return 0;
}
/* Emit UI events. */
@@ -674,7 +674,7 @@ jalv_update(Jalv* jalv)
}
}
- return true;
+ return 1;
}
static bool