summaryrefslogtreecommitdiff
path: root/src/conversation/microphone.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-02 21:05:48 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-02 21:05:48 +0000
commit875342e4d0114e626dcf502362787d048d5e12fc (patch)
tree9ae7e303b3310a892c219b702f36005336ad5eff /src/conversation/microphone.c
parent18b62beec7902acecaad00c0470f2f1d4d98b244 (diff)
-fix logging
Diffstat (limited to 'src/conversation/microphone.c')
-rw-r--r--src/conversation/microphone.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/conversation/microphone.c b/src/conversation/microphone.c
index 53ac5cb86..f42f571c8 100644
--- a/src/conversation/microphone.c
+++ b/src/conversation/microphone.c
@@ -75,14 +75,13 @@ process_record_messages (void *cls,
{
struct Microphone *mic = cls;
- if ( (ntohs (msg->size) != sizeof (struct AudioMessage)) ||
- (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO) )
+ if (ntohs (msg->type) != GNUNET_MESSAGE_TYPE_CONVERSATION_AUDIO)
{
GNUNET_break (0);
return GNUNET_SYSERR;
}
mic->rdc (mic->rdc_cls,
- sizeof (struct AudioMessage),
+ ntohs (msg->size),
(const char *) msg);
return GNUNET_OK;
}