aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin Berger <j.david.berger@gmail.com>2018-04-03 22:56:40 -0600
committerJustin Berger <j.david.berger@gmail.com>2018-04-04 00:41:47 -0600
commitbe7593dc945ed4025f81c6876760807310a67319 (patch)
treeb7a8647e1b9559629450509779ed522a5c59fb25 /src
parent7d1d930dcb99559eee95fc8a94cc68d12a968353 (diff)
downloadlibsurvive-be7593dc945ed4025f81c6876760807310a67319.tar.gz
libsurvive-be7593dc945ed4025f81c6876760807310a67319.tar.bz2
Minor cleanup
Diffstat (limited to 'src')
-rw-r--r--src/survive_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/survive_api.c b/src/survive_api.c
index 9883c9f..2aaf31a 100644
--- a/src/survive_api.c
+++ b/src/survive_api.c
@@ -35,7 +35,7 @@ static void pose_fn(SurviveObject *so, uint32_t timecode, SurvivePose *pose) {
survive_default_raw_pose_process(so, timecode, pose);
struct SurviveAsyncContext* actx = so->ctx->user_ptr;
- int idx = so->user_ptr;
+ int idx = (int)so->user_ptr;
actx->objects[idx].has_update = true;
}
static void lh_fn(SurviveContext *ctx, uint8_t lighthouse, SurvivePose *lighthouse_pose,
@@ -46,7 +46,7 @@ static void lh_fn(SurviveContext *ctx, uint8_t lighthouse, SurvivePose *lighthou
actx->objects[lighthouse].has_update = true;
}
-struct SurviveAsyncContext *survive_asyc_init(int argc, char *const *argv) {
+struct SurviveAsyncContext *survive_async_init(int argc, char *const *argv) {
SurviveContext* ctx = survive_init(argc, argv);
if (ctx == 0)
return 0;