diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-04 19:18:32 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-04 19:18:40 +0100 |
commit | 0baf3c103e55a8227de32a6d43afd749538bb1a5 (patch) | |
tree | 01492d52158eea25e42b505a08a124f633813d33 /src/util/resolver_api.c | |
parent | e7e3572182bf2a0d51ae449abeee0fabbb18a0b4 (diff) |
fix misc compiler warnings
Diffstat (limited to 'src/util/resolver_api.c')
-rw-r--r-- | src/util/resolver_api.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index 84f541ba04..bd46b4fbb2 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - Copyright (C) 2009-2016 GNUnet e.V. + Copyright (C) 2009-2018 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -214,7 +214,8 @@ check_config () for (unsigned int i = 0; NULL != loopback[i]; i++) - if (0 == strcasecmp (loopback[i], hostname)) + if (0 == strcasecmp (loopback[i], + hostname)) { GNUNET_free (hostname); return GNUNET_OK; @@ -285,6 +286,7 @@ GNUNET_RESOLVER_disconnect () static void shutdown_task (void *cls) { + (void) cls; s_task = NULL; GNUNET_RESOLVER_disconnect (); backoff = GNUNET_TIME_UNIT_MILLISECONDS; @@ -387,10 +389,12 @@ static void mq_error_handler (void *cls, enum GNUNET_MQ_Error error) { + (void) cls; GNUNET_MQ_destroy (mq); mq = NULL; LOG (GNUNET_ERROR_TYPE_DEBUG, - "MQ error, reconnecting\n"); + "MQ error %d, reconnecting\n", + error); reconnect (); } @@ -449,6 +453,9 @@ static int check_response (void *cls, const struct GNUNET_MessageHeader *msg) { + (void) cls; + (void) msg; + /* implemented in #handle_response() for now */ return GNUNET_OK; } @@ -470,6 +477,7 @@ handle_response (void *cls, uint16_t size; char *nret; + (void) cls; GNUNET_assert (NULL != rh); size = ntohs (msg->size); if (size == sizeof (struct GNUNET_MessageHeader)) @@ -743,6 +751,7 @@ reconnect_task (void *cls) GNUNET_MQ_handler_end () }; + (void) cls; r_task = NULL; if (NULL == req_head) return; /* no work pending */ |