diff options
Diffstat (limited to 'src/gnunet_chat_context_intern.c')
-rw-r--r-- | src/gnunet_chat_context_intern.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gnunet_chat_context_intern.c b/src/gnunet_chat_context_intern.c index b9fca1d..ca90e06 100644 --- a/src/gnunet_chat_context_intern.c +++ b/src/gnunet_chat_context_intern.c | |||
@@ -25,6 +25,8 @@ | |||
25 | #include "gnunet_chat_invitation.h" | 25 | #include "gnunet_chat_invitation.h" |
26 | #include "gnunet_chat_message.h" | 26 | #include "gnunet_chat_message.h" |
27 | 27 | ||
28 | #include <gnunet/gnunet_error_codes.h> | ||
29 | |||
28 | #define GNUNET_UNUSED __attribute__ ((unused)) | 30 | #define GNUNET_UNUSED __attribute__ ((unused)) |
29 | 31 | ||
30 | int | 32 | int |
@@ -65,8 +67,7 @@ it_destroy_context_invites (GNUNET_UNUSED void *cls, | |||
65 | 67 | ||
66 | void | 68 | void |
67 | cont_context_write_records (void *cls, | 69 | cont_context_write_records (void *cls, |
68 | GNUNET_UNUSED int32_t success, | 70 | enum GNUNET_ErrorCode ec) |
69 | const char *emsg) | ||
70 | { | 71 | { |
71 | struct GNUNET_CHAT_Context *context = cls; | 72 | struct GNUNET_CHAT_Context *context = cls; |
72 | 73 | ||
@@ -74,11 +75,11 @@ cont_context_write_records (void *cls, | |||
74 | 75 | ||
75 | context->query = NULL; | 76 | context->query = NULL; |
76 | 77 | ||
77 | if (emsg) | 78 | if (GNUNET_EC_NONE != ec) |
78 | handle_send_internal_message( | 79 | handle_send_internal_message( |
79 | context->handle, | 80 | context->handle, |
80 | context, | 81 | context, |
81 | GNUNET_CHAT_FLAG_WARNING, | 82 | GNUNET_CHAT_FLAG_WARNING, |
82 | emsg | 83 | GNUNET_ErrorCode_get_hint(ec) |
83 | ); | 84 | ); |
84 | } | 85 | } |