X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol.c;h=08226f670200226fb9ca466be52bdc00c0a7e13f;hb=f79cc0e0bba16a3aa42a5fa13098cda714623205;hp=fb0aa9ca12b0ff26b2e467d2815ac48810bcc71e;hpb=b95becf1382a6e194b7b4e867a4f808440ad0ff9;p=meshlink diff --git a/src/protocol.c b/src/protocol.c index fb0aa9ca..08226f67 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -1,6 +1,6 @@ /* protocol.c -- handle the meta-protocol, basic functions - Copyright (C) 2014 Guus Sliepen + Copyright (C) 2014-2017 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -158,6 +158,7 @@ static void free_past_request(past_request_t *r) { } static void age_past_requests(event_loop_t *loop, void *data) { + (void)data; meshlink_handle_t *mesh = loop->data; int left = 0, deleted = 0; @@ -178,7 +179,7 @@ static void age_past_requests(event_loop_t *loop, void *data) { } bool seen_request(meshlink_handle_t *mesh, const char *request) { - past_request_t *new, p = {NULL}; + past_request_t *new, p = {}; p.request = request;