Merge "Remove duplication from sendevent.c."