fixed datatypes in detect-failed-communication.c