Skip to content

Commit c45bf5d

Browse files
committed
add missing return value
1 parent 2ca6866 commit c45bf5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jni-c-toxcore/jni-c-toxcore.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3374,6 +3374,9 @@ Java_com_zoffcc_applications_trifa_MainActivity_tox_1callback_1friend_1lossless_
33743374
return -1;
33753375
}
33763376
tox_callback_friend_lossless_packet_per_pktid(tox_global, friend_lossless_packet_cb, pktid);
3377+
3378+
// HINT: since we have no return value from c-toxcore, we just return "1" (== true)
3379+
return 1;
33773380
}
33783381

33793382
JNIEXPORT jstring JNICALL

0 commit comments

Comments
 (0)