fclose(f);
- logger(mesh, MESHLINK_INFO, "Key succesfully received from %s", c->name);
+ logger(mesh, MESHLINK_INFO, "Key successfully received from %s", c->name);
//TODO: callback to application to inform of an accepted invitation
return false;
}
- if(time(NULL) > st.st_mtime + mesh->invitation_timeout) {
+ if(time(NULL) > (time_t)(st.st_mtime + mesh->invitation_timeout)) {
logger(mesh, MESHLINK_ERROR, "Peer %s tried to use an outdated invitation file %s\n", c->name, usedname);
fclose(f);
unlink(usedname);
c->status.invitation_used = true;
- logger(mesh, MESHLINK_INFO, "Invitation %s succesfully sent to %s", cookie, c->name);
+ logger(mesh, MESHLINK_INFO, "Invitation %s successfully sent to %s", cookie, c->name);
return true;
}
get_config_bool(lookup_config(c->config_tree, "blacklisted"), &blacklisted);
if(blacklisted) {
- logger(mesh, MESHLINK_EPEER, "Peer %s is blacklisted", c->name);
+ logger(mesh, MESHLINK_INFO, "Peer %s is blacklisted", c->name);
return false;
}