ffi: update code with last syntax