[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -updated get_sender() to return const co
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -updated get_sender() to return const contact |
Date: |
Sun, 27 Jun 2021 16:21:00 +0200 |
This is an automated email from the git hooks/post-receive script.
thejackimonster pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new fa9e2e2b8 -updated get_sender() to return const contact
fa9e2e2b8 is described below
commit fa9e2e2b89313349d653cbf4ce1df8a49280a8c2
Author: TheJackiMonster <thejackimonster@gmail.com>
AuthorDate: Sun Jun 27 16:17:58 2021 +0200
-updated get_sender() to return const contact
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
---
src/include/gnunet_messenger_service.h | 2 +-
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
* @param[in] hash Hash identifying a message
* @return Contact handle, NULL otherwise
*/
-struct GNUNET_MESSENGER_Contact*
+const struct GNUNET_MESSENGER_Contact*
GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const
struct GNUNET_HashCode *hash);
/**
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
return GNUNET_CONTAINER_multihashmap_iterate(handle->rooms,
iterate_find_room, &find);
}
-struct GNUNET_MESSENGER_Contact*
+const struct GNUNET_MESSENGER_Contact*
GNUNET_MESSENGER_get_sender (const struct GNUNET_MESSENGER_Room *room, const
struct GNUNET_HashCode *hash)
{
if ((!room) || (!hash))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -updated get_sender() to return const contact,
gnunet <=