[api] Fix C89 compliance