commit 90b3ed7b69e5b2d57e7f57c2391e619afb574bc3
parent 9d4ae39a484b567025ad494ec0812b9cd10f0747
Author: TheJackiMonster <thejackimonster@gmail.com>
Date: Tue, 15 Mar 2022 18:03:41 +0100
Adjusted const modifier in functions
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat:
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h
@@ -764,8 +764,8 @@ GNUNET_CHAT_context_request (struct GNUNET_CHAT_Context *context);
* @param[in] context Context
* @return Chat contact
*/
-const struct GNUNET_CHAT_Contact*
-GNUNET_CHAT_context_get_contact (const struct GNUNET_CHAT_Context *context);
+struct GNUNET_CHAT_Contact*
+GNUNET_CHAT_context_get_contact (struct GNUNET_CHAT_Context *context);
/**
* Returns the chat group which uses a given <i>context</i>.
@@ -773,8 +773,8 @@ GNUNET_CHAT_context_get_contact (const struct GNUNET_CHAT_Context *context);
* @param[in] context Context
* @return Chat group
*/
-const struct GNUNET_CHAT_Group*
-GNUNET_CHAT_context_get_group (const struct GNUNET_CHAT_Context *context);
+struct GNUNET_CHAT_Group*
+GNUNET_CHAT_context_get_group (struct GNUNET_CHAT_Context *context);
/**
* Sets a custom <i>user pointer</i> to a given chat <i>context</i> so it can
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
@@ -841,8 +841,8 @@ GNUNET_CHAT_context_request (struct GNUNET_CHAT_Context *context)
}
-const struct GNUNET_CHAT_Contact*
-GNUNET_CHAT_context_get_contact (const struct GNUNET_CHAT_Context *context)
+struct GNUNET_CHAT_Contact*
+GNUNET_CHAT_context_get_contact (struct GNUNET_CHAT_Context *context)
{
if ((!context) || (GNUNET_CHAT_CONTEXT_TYPE_CONTACT != context->type))
return NULL;
@@ -869,8 +869,8 @@ GNUNET_CHAT_context_get_contact (const struct GNUNET_CHAT_Context *context)
}
-const struct GNUNET_CHAT_Group*
-GNUNET_CHAT_context_get_group (const struct GNUNET_CHAT_Context *context)
+struct GNUNET_CHAT_Group*
+GNUNET_CHAT_context_get_group (struct GNUNET_CHAT_Context *context)
{
if ((!context) || (GNUNET_CHAT_CONTEXT_TYPE_GROUP != context->type))
return NULL;