Fix style issues in events.c