[runtime] Fix prototype of functions