format the code

1. `ffi.fill` and `ffi.null` to local
2. format code style