diff options
Diffstat (limited to 'src/gnunet_chat_lib.c')
-rw-r--r-- | src/gnunet_chat_lib.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c index 1fcc419..72db7cd 100644 --- a/src/gnunet_chat_lib.c +++ b/src/gnunet_chat_lib.c | |||
@@ -47,7 +47,6 @@ | |||
47 | 47 | ||
48 | struct GNUNET_CHAT_Handle* | 48 | struct GNUNET_CHAT_Handle* |
49 | GNUNET_CHAT_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | 49 | GNUNET_CHAT_start (const struct GNUNET_CONFIGURATION_Handle *cfg, |
50 | const char *directory, | ||
51 | GNUNET_CHAT_ContextMessageCallback msg_cb, void *msg_cls) | 50 | GNUNET_CHAT_ContextMessageCallback msg_cb, void *msg_cls) |
52 | { | 51 | { |
53 | GNUNET_CHAT_VERSION_ASSERT(); | 52 | GNUNET_CHAT_VERSION_ASSERT(); |
@@ -56,8 +55,9 @@ GNUNET_CHAT_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
56 | return NULL; | 55 | return NULL; |
57 | 56 | ||
58 | return handle_create_from_config( | 57 | return handle_create_from_config( |
59 | cfg, directory, | 58 | cfg, |
60 | msg_cb, msg_cls | 59 | msg_cb, |
60 | msg_cls | ||
61 | ); | 61 | ); |
62 | } | 62 | } |
63 | 63 | ||
@@ -1094,9 +1094,6 @@ GNUNET_CHAT_context_send_file (struct GNUNET_CHAT_Context *context, | |||
1094 | if ((!context) || (!path) || (!(context->room))) | 1094 | if ((!context) || (!path) || (!(context->room))) |
1095 | return NULL; | 1095 | return NULL; |
1096 | 1096 | ||
1097 | if (!(context->handle->directory)) | ||
1098 | return NULL; | ||
1099 | |||
1100 | struct GNUNET_HashCode hash; | 1097 | struct GNUNET_HashCode hash; |
1101 | if (GNUNET_OK != util_hash_file(path, &hash)) | 1098 | if (GNUNET_OK != util_hash_file(path, &hash)) |
1102 | return NULL; | 1099 | return NULL; |