#include "yasnd.h" GSM_Error error; // structure to store possible gammu errors bool check_gammu_error(GSM_Error err) { if (err == ERR_NONE) { return false; } char tmp[150]; sprintf(tmp,"gammu failure: %s\n", GSM_ErrorString(err)); log_event(tmp); return true; }