]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_auth.c
Update android build
[meshlink] / src / protocol_auth.c
index f88aaf4b9e7bf430c08cffb02542fe1b9170dbc6..b7f6acdda03315f2ec72aa899983f56f473022dd 100644 (file)
@@ -258,7 +258,7 @@ static bool receive_invitation_sptps(void *handle, uint8_t type, const void *dat
                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);
@@ -428,7 +428,7 @@ bool id_h(meshlink_handle_t *mesh, connection_t *c, const char *request) {
        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;
        }