diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-06-27 16:17:58 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-06-27 16:17:58 +0200 |
commit | fa9e2e2b89313349d653cbf4ce1df8a49280a8c2 (patch) | |
tree | 2878b37864919ce8923a106cfb03c51576929fcf | |
parent | 2a1a812f3422192316b30236c2a4ab8c9f9b8389 (diff) | |
download | gnunet-fa9e2e2b89313349d653cbf4ce1df8a49280a8c2.tar.gz gnunet-fa9e2e2b89313349d653cbf4ce1df8a49280a8c2.zip |
-updated get_sender() to return const contact
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | src/include/gnunet_messenger_service.h | 2 | ||||
-rw-r--r-- | src/messenger/messenger_api.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/gnunet_messenger_service.h b/src/include/gnunet_messenger_service.h index f76e1832a..4567a63a4 100644 --- a/src/include/gnunet_messenger_service.h +++ b/src/include/gnunet_messenger_service.h | |||
@@ -701,7 +701,7 @@ GNUNET_MESSENGER_find_rooms (const struct GNUNET_MESSENGER_Handle *handle, const | |||
701 | * @param[in] hash Hash identifying a message | 701 | * @param[in] hash Hash identifying a message |
702 | * @return Contact handle, NULL otherwise | 702 | * @return Contact handle, NULL otherwise |
703 | */ | 703 | */ |
704 | struct GNUNET_MESSENGER_Contact* | 704 | const struct GNUNET_MESSENGER_Contact* |
705 | GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash); | 705 | GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash); |
706 | 706 | ||
707 | /** | 707 | /** |
diff --git a/src/messenger/messenger_api.c b/src/messenger/messenger_api.c index 7d80439d2..1eedbd31b 100644 --- a/src/messenger/messenger_api.c +++ b/src/messenger/messenger_api.c | |||
@@ -618,7 +618,7 @@ GNUNET_MESSENGER_find_rooms (const struct GNUNET_MESSENGER_Handle *handle, const | |||
618 | return GNUNET_CONTAINER_multihashmap_iterate(handle->rooms, iterate_find_room, &find); | 618 | return GNUNET_CONTAINER_multihashmap_iterate(handle->rooms, iterate_find_room, &find); |
619 | } | 619 | } |
620 | 620 | ||
621 | struct GNUNET_MESSENGER_Contact* | 621 | const struct GNUNET_MESSENGER_Contact* |
622 | GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash) | 622 | GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_HashCode *hash) |
623 | { | 623 | { |
624 | if ((!room) || (!hash)) | 624 | if ((!room) || (!hash)) |