diff options
Diffstat (limited to 'src/chat/chat.c')
-rw-r--r-- | src/chat/chat.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/chat/chat.c b/src/chat/chat.c index 72c49a0..cdcf282 100644 --- a/src/chat/chat.c +++ b/src/chat/chat.c @@ -92,7 +92,7 @@ struct MemberList /** * Member ID (pseudonym). */ - GNUNET_HashCode id; + struct GNUNET_HashCode id; }; @@ -224,8 +224,8 @@ process_result (struct GNUNET_CHAT_Room *room, struct ReceiveNotificationMessage *received_msg; struct ConfirmationReceiptMessage *receipt; struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pkey; - GNUNET_HashCode id; - const GNUNET_HashCode *sender; + struct GNUNET_HashCode id; + const struct GNUNET_HashCode *sender; struct GNUNET_CONTAINER_MetaData *meta; struct GNUNET_CHAT_SendReceiptContext *src; struct MemberList *pos; @@ -308,7 +308,7 @@ process_result (struct GNUNET_CHAT_Room *room, prev = NULL; pos = room->members; while ((NULL != pos) && - (0 != memcmp (&pos->id, &id, sizeof (GNUNET_HashCode)))) + (0 != memcmp (&pos->id, &id, sizeof (struct GNUNET_HashCode)))) { prev = pos; pos = pos->next; @@ -379,7 +379,7 @@ process_result (struct GNUNET_CHAT_Room *room, while ((NULL != pos) && (0 != memcmp (&pos->id, &received_msg->sender, - sizeof (GNUNET_HashCode)))) + sizeof (struct GNUNET_HashCode)))) pos = pos->next; GNUNET_assert (NULL != pos); sender = &received_msg->sender; @@ -468,13 +468,12 @@ init_private_key (const struct GNUNET_CONFIGURATION_Handle *cfg, if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename (cfg, "chat", "HOME", &home)) { - GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - _("Configuration option `%s' in section `%s' missing\n"), - "HOME", "chat"); + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "chat", "HOME"); return NULL; } GNUNET_DISK_directory_create (home); - if (GNUNET_OK != GNUNET_DISK_directory_test (home)) + if (GNUNET_YES != GNUNET_DISK_directory_test (home, GNUNET_YES)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Failed to access chat home directory `%s'\n"), home); @@ -649,7 +648,7 @@ GNUNET_CHAT_join_room (const struct GNUNET_CONFIGURATION_Handle *cfg, GNUNET_CHAT_MemberListCallback memberCallback, void *member_cls, GNUNET_CHAT_MessageConfirmation confirmationCallback, - void *confirmation_cls, GNUNET_HashCode * me) + void *confirmation_cls, struct GNUNET_HashCode * me) { struct GNUNET_CHAT_Room *chat_room; struct GNUNET_CRYPTO_RsaPrivateKey *priv_key; @@ -755,7 +754,7 @@ transmit_send_request (void *cls, size_t size, void *buf) GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()); msg_to_send->reserved = htonl (0); if (NULL == smc->receiver) - memset (&msg_to_send->target, 0, sizeof (GNUNET_HashCode)); + memset (&msg_to_send->target, 0, sizeof (struct GNUNET_HashCode)); else GNUNET_CRYPTO_hash (smc->receiver, sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |