aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-service-conversation.c
diff options
context:
space:
mode:
authorNils Gillmann <ng0@n0.is>2018-06-13 08:05:15 +0000
committerNils Gillmann <ng0@n0.is>2018-06-13 08:05:15 +0000
commit5c7f4f919d2569f49e4223d77000452dd2ec4e97 (patch)
tree8cec76a5dda6b034d1e5b85eee76a43fafd8a4a5 /src/conversation/gnunet-service-conversation.c
parent1f7a2dd68d1e6260fad4af042878c0a07d39bc12 (diff)
parent8503c6fa26449228fa691c1dedfe3ca1a8d0b9ba (diff)
Merge branch 'master' of gnunet.org:gnunet
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r--src/conversation/gnunet-service-conversation.c36
1 files changed, 24 insertions, 12 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index 7d319e51e1..fb9eec26eb 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -2,20 +2,18 @@
This file is part of GNUnet.
Copyright (C) 2013, 2016, 2017 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
- by the Free Software Foundation; either version 3, or (at your
- option) any later version.
+ GNUnet is free software: you can redistribute it and/or modify it
+ under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License,
+ or (at your option) any later version.
GNUnet is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
+ Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* @file conversation/gnunet-service-conversation.c
@@ -605,6 +603,8 @@ static int
check_client_audio_message (void *cls,
const struct ClientAudioMessage *msg)
{
+ (void) cls;
+ (void) msg;
return GNUNET_OK;
}
@@ -771,6 +771,7 @@ handle_cadet_hangup_message (void *cls,
enum ChannelStatus status;
uint32_t cid;
+ (void) message;
GNUNET_CADET_receive_done (ch->channel);
cid = ch->cid;
status = ch->status;
@@ -816,6 +817,7 @@ handle_cadet_pickup_message (void *cls,
struct GNUNET_MQ_Envelope *env;
struct ClientPhonePickedupMessage *pick;
+ (void) message;
GNUNET_CADET_receive_done (ch->channel);
switch (ch->status)
{
@@ -865,6 +867,7 @@ handle_cadet_suspend_message (void *cls,
struct GNUNET_MQ_Envelope *env;
struct ClientPhoneSuspendMessage *suspend;
+ (void) message;
GNUNET_CADET_receive_done (ch->channel);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Suspending channel CID: %u\n",
@@ -914,6 +917,7 @@ handle_cadet_resume_message (void *cls,
struct GNUNET_MQ_Envelope *env;
struct ClientPhoneResumeMessage *resume;
+ (void) msg;
line = ch->line;
GNUNET_CADET_receive_done (ch->channel);
if (GNUNET_YES != ch->suspended_remote)
@@ -964,6 +968,8 @@ static int
check_cadet_audio_message (void *cls,
const struct CadetAudioMessage *msg)
{
+ (void) cls;
+ (void) msg;
return GNUNET_OK; /* any payload is fine */
}
@@ -1152,6 +1158,7 @@ inbound_channel (void *cls,
struct Line *line = cls;
struct Channel *ch;
+ (void) initiator;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Received incoming cadet channel on line %p\n",
line);
@@ -1183,6 +1190,7 @@ client_connect_cb (void *cls,
{
struct Line *line;
+ (void) cls;
line = GNUNET_new (struct Line);
line->client = client;
line->mq = mq;
@@ -1203,9 +1211,10 @@ client_disconnect_cb (void *cls,
void *app_ctx)
{
struct Line *line = app_ctx;
- struct Channel *ch;
struct Channel *chn;
+ (void) cls;
+ (void) client;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Client disconnected, closing line\n");
if (NULL != line->port)
@@ -1213,7 +1222,7 @@ client_disconnect_cb (void *cls,
GNUNET_CADET_close_port (line->port);
line->port = NULL;
}
- for (ch = line->channel_head; NULL != ch; ch = chn)
+ for (struct Channel *ch = line->channel_head; NULL != ch; ch = chn)
{
chn = ch->next;
ch->line = NULL;
@@ -1290,6 +1299,7 @@ handle_client_register_message (void *cls,
static void
do_shutdown (void *cls)
{
+ (void) cls;
if (NULL != cadet)
{
GNUNET_CADET_disconnect (cadet);
@@ -1310,6 +1320,8 @@ run (void *cls,
const struct GNUNET_CONFIGURATION_Handle *c,
struct GNUNET_SERVICE_Handle *service)
{
+ (void) cls;
+ (void) service;
cfg = c;
GNUNET_assert (GNUNET_OK ==
GNUNET_CRYPTO_get_peer_identity (cfg,