diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-15 18:03:41 +0100 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2022-03-15 18:03:41 +0100 |
commit | 90b3ed7b69e5b2d57e7f57c2391e619afb574bc3 (patch) | |
tree | fbc353a8067c4e66e7931a3715437b2d7b5d7b39 | |
parent | 9d4ae39a484b567025ad494ec0812b9cd10f0747 (diff) | |
download | libgnunetchat-90b3ed7b69e5b2d57e7f57c2391e619afb574bc3.tar.gz libgnunetchat-90b3ed7b69e5b2d57e7f57c2391e619afb574bc3.zip |
Adjusted const modifier in functions
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r-- | include/gnunet_chat_lib.h | 8 | ||||
-rw-r--r-- | src/gnunet_chat_lib.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/include/gnunet_chat_lib.h b/include/gnunet_chat_lib.h index e8a409f..91cd9b6 100644 --- 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); | |||
764 | * @param[in] context Context | 764 | * @param[in] context Context |
765 | * @return Chat contact | 765 | * @return Chat contact |
766 | */ | 766 | */ |
767 | const struct GNUNET_CHAT_Contact* | 767 | struct GNUNET_CHAT_Contact* |
768 | GNUNET_CHAT_context_get_contact (const struct GNUNET_CHAT_Context *context); | 768 | GNUNET_CHAT_context_get_contact (struct GNUNET_CHAT_Context *context); |
769 | 769 | ||
770 | /** | 770 | /** |
771 | * Returns the chat group which uses a given <i>context</i>. | 771 | * 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); | |||
773 | * @param[in] context Context | 773 | * @param[in] context Context |
774 | * @return Chat group | 774 | * @return Chat group |
775 | */ | 775 | */ |
776 | const struct GNUNET_CHAT_Group* | 776 | struct GNUNET_CHAT_Group* |
777 | GNUNET_CHAT_context_get_group (const struct GNUNET_CHAT_Context *context); | 777 | GNUNET_CHAT_context_get_group (struct GNUNET_CHAT_Context *context); |
778 | 778 | ||
779 | /** | 779 | /** |
780 | * Sets a custom <i>user pointer</i> to a given chat <i>context</i> so it can | 780 | * 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 index bac539d..180b0e4 100644 --- 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) | |||
841 | } | 841 | } |
842 | 842 | ||
843 | 843 | ||
844 | const struct GNUNET_CHAT_Contact* | 844 | struct GNUNET_CHAT_Contact* |
845 | GNUNET_CHAT_context_get_contact (const struct GNUNET_CHAT_Context *context) | 845 | GNUNET_CHAT_context_get_contact (struct GNUNET_CHAT_Context *context) |
846 | { | 846 | { |
847 | if ((!context) || (GNUNET_CHAT_CONTEXT_TYPE_CONTACT != context->type)) | 847 | if ((!context) || (GNUNET_CHAT_CONTEXT_TYPE_CONTACT != context->type)) |
848 | return NULL; | 848 | return NULL; |
@@ -869,8 +869,8 @@ GNUNET_CHAT_context_get_contact (const struct GNUNET_CHAT_Context *context) | |||
869 | } | 869 | } |
870 | 870 | ||
871 | 871 | ||
872 | const struct GNUNET_CHAT_Group* | 872 | struct GNUNET_CHAT_Group* |
873 | GNUNET_CHAT_context_get_group (const struct GNUNET_CHAT_Context *context) | 873 | GNUNET_CHAT_context_get_group (struct GNUNET_CHAT_Context *context) |
874 | { | 874 | { |
875 | if ((!context) || (GNUNET_CHAT_CONTEXT_TYPE_GROUP != context->type)) | 875 | if ((!context) || (GNUNET_CHAT_CONTEXT_TYPE_GROUP != context->type)) |
876 | return NULL; | 876 | return NULL; |