Use consistent and more eye-friendly comparision style in act_api.c: if (x != NULL) instead of if (NULL != x).