commit 9ca0d5d5b870914e1c6a7b2912207f4ed3c7312f
parent 0267c9588a7fe17b6b1a99bd761a4a79ff90a515
Author: TheJackiMonster <thejackimonster@gmail.com>
Date: Mon, 1 Nov 2021 23:54:19 +0100
Fixed some minor mistakes
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gnunet_chat_handle_intern.c b/src/gnunet_chat_handle_intern.c
@@ -415,7 +415,7 @@ on_handle_identity(void *cls,
void
on_handle_message (void *cls,
struct GNUNET_MESSENGER_Room *room,
- GNUNET_UNUSED const struct GNUNET_MESSENGER_Contact *sender,
+ const struct GNUNET_MESSENGER_Contact *sender,
const struct GNUNET_MESSENGER_Message *msg,
const struct GNUNET_HashCode *hash,
enum GNUNET_MESSENGER_MessageFlags flags)
@@ -445,7 +445,7 @@ on_handle_message (void *cls,
context->timestamps, &shorthash
);
- if (time)
+ if (!time)
{
time = GNUNET_new(struct GNUNET_TIME_Absolute);
*time = timestamp;
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c
@@ -28,7 +28,7 @@ void
util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member,
struct GNUNET_ShortHashCode *shorthash)
{
- GNUNET_assert((member) && (shorthash));
+ GNUNET_assert(shorthash);
memset(shorthash, 0, sizeof(*shorthash));
GNUNET_memcpy(shorthash, &member, sizeof(member));