X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fdiscovery.c;h=5b83862d767c1a48f8d2bd28a3b4349583049601;hb=f79cc0e0bba16a3aa42a5fa13098cda714623205;hp=0ef1001da471901f766f2206d93c356fc515cc3b;hpb=b95becf1382a6e194b7b4e867a4f808440ad0ff9;p=meshlink diff --git a/src/discovery.c b/src/discovery.c index 0ef1001d..5b83862d 100644 --- a/src/discovery.c +++ b/src/discovery.c @@ -28,6 +28,8 @@ static void generate_rand_string(char *buffer, size_t size) { } static void discovery_entry_group_callback(CattaServer *server, CattaSEntryGroup *group, CattaEntryGroupState state, void *userdata) { + (void)server; + (void)group; meshlink_handle_t *mesh = userdata; // asserts @@ -128,6 +130,7 @@ done: } static void discovery_server_callback(CattaServer *server, CattaServerState state, void *userdata) { + (void)server; meshlink_handle_t *mesh = userdata; // asserts @@ -193,6 +196,8 @@ static void discovery_server_callback(CattaServer *server, CattaServerState stat } static void discovery_resolve_callback(CattaSServiceResolver *resolver, CattaIfIndex interface_, CattaProtocol protocol, CattaResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const CattaAddress *address, uint16_t port, CattaStringList *txt, CattaLookupResultFlags flags, void *userdata) { + (void)interface_; + (void)protocol; meshlink_handle_t *mesh = userdata; // asserts @@ -306,6 +311,8 @@ static void discovery_resolve_callback(CattaSServiceResolver *resolver, CattaIfI } static void discovery_browse_callback(CattaSServiceBrowser *browser, CattaIfIndex interface_, CattaProtocol protocol, CattaBrowserEvent event, const char *name, const char *type, const char *domain, CattaLookupResultFlags flags, void *userdata) { + (void)browser; + (void)flags; meshlink_handle_t *mesh = userdata; // asserts