diff options
Diffstat (limited to 'src/chat/gnunet-chat.c')
-rw-r--r-- | src/chat/gnunet-chat.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/chat/gnunet-chat.c b/src/chat/gnunet-chat.c index 012f78ed9..d41d59062 100644 --- a/src/chat/gnunet-chat.c +++ b/src/chat/gnunet-chat.c | |||
@@ -110,7 +110,7 @@ join_cb (void *cls) | |||
110 | */ | 110 | */ |
111 | static int | 111 | static int |
112 | receive_cb (void *cls, struct GNUNET_CHAT_Room *room, | 112 | receive_cb (void *cls, struct GNUNET_CHAT_Room *room, |
113 | const GNUNET_HashCode * sender, | 113 | const struct GNUNET_HashCode * sender, |
114 | const struct GNUNET_CONTAINER_MetaData *member_info, | 114 | const struct GNUNET_CONTAINER_MetaData *member_info, |
115 | const char *message, struct GNUNET_TIME_Absolute timestamp, | 115 | const char *message, struct GNUNET_TIME_Absolute timestamp, |
116 | enum GNUNET_CHAT_MsgOptions options) | 116 | enum GNUNET_CHAT_MsgOptions options) |
@@ -199,7 +199,7 @@ static int | |||
199 | confirmation_cb (void *cls, struct GNUNET_CHAT_Room *room, | 199 | confirmation_cb (void *cls, struct GNUNET_CHAT_Room *room, |
200 | uint32_t orig_seq_number, | 200 | uint32_t orig_seq_number, |
201 | struct GNUNET_TIME_Absolute timestamp, | 201 | struct GNUNET_TIME_Absolute timestamp, |
202 | const GNUNET_HashCode * receiver) | 202 | const struct GNUNET_HashCode * receiver) |
203 | { | 203 | { |
204 | char *nick; | 204 | char *nick; |
205 | char *unique_nick; | 205 | char *unique_nick; |
@@ -238,7 +238,7 @@ member_list_cb (void *cls, const struct GNUNET_CONTAINER_MetaData *member_info, | |||
238 | char *nick; | 238 | char *nick; |
239 | char *non_unique_nick; | 239 | char *non_unique_nick; |
240 | int nick_is_a_dup; | 240 | int nick_is_a_dup; |
241 | GNUNET_HashCode id; | 241 | struct GNUNET_HashCode id; |
242 | struct UserList *pos; | 242 | struct UserList *pos; |
243 | struct UserList *prev; | 243 | struct UserList *prev; |
244 | 244 | ||
@@ -304,7 +304,7 @@ do_join (const char *arg, const void *xtra) | |||
304 | { | 304 | { |
305 | char *my_name; | 305 | char *my_name; |
306 | int my_name_is_a_dup; | 306 | int my_name_is_a_dup; |
307 | GNUNET_HashCode me; | 307 | struct GNUNET_HashCode me; |
308 | 308 | ||
309 | if (arg[0] == '#') | 309 | if (arg[0] == '#') |
310 | arg++; /* ignore first hash */ | 310 | arg++; /* ignore first hash */ |
@@ -343,7 +343,7 @@ do_nick (const char *msg, const void *xtra) | |||
343 | { | 343 | { |
344 | char *my_name; | 344 | char *my_name; |
345 | int my_name_is_a_dup; | 345 | int my_name_is_a_dup; |
346 | GNUNET_HashCode me; | 346 | struct GNUNET_HashCode me; |
347 | 347 | ||
348 | GNUNET_CHAT_leave_room (room); | 348 | GNUNET_CHAT_leave_room (room); |
349 | free_user_list (); | 349 | free_user_list (); |
@@ -383,7 +383,7 @@ do_names (const char *msg, const void *xtra) | |||
383 | char *unique_name; | 383 | char *unique_name; |
384 | int name_is_a_dup; | 384 | int name_is_a_dup; |
385 | struct UserList *pos; | 385 | struct UserList *pos; |
386 | GNUNET_HashCode pid; | 386 | struct GNUNET_HashCode pid; |
387 | 387 | ||
388 | FPRINTF (stdout, _("Users in room `%s': "), room_name); | 388 | FPRINTF (stdout, _("Users in room `%s': "), room_name); |
389 | pos = users; | 389 | pos = users; |
@@ -424,8 +424,8 @@ static int | |||
424 | do_send_pm (const char *msg, const void *xtra) | 424 | do_send_pm (const char *msg, const void *xtra) |
425 | { | 425 | { |
426 | char *user; | 426 | char *user; |
427 | GNUNET_HashCode uid; | 427 | struct GNUNET_HashCode uid; |
428 | GNUNET_HashCode pid; | 428 | struct GNUNET_HashCode pid; |
429 | uint32_t seq; | 429 | uint32_t seq; |
430 | struct UserList *pos; | 430 | struct UserList *pos; |
431 | 431 | ||
@@ -451,7 +451,7 @@ do_send_pm (const char *msg, const void *xtra) | |||
451 | GNUNET_CRYPTO_hash (&pos->pkey, | 451 | GNUNET_CRYPTO_hash (&pos->pkey, |
452 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | 452 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |
453 | &pid); | 453 | &pid); |
454 | if (0 == memcmp (&pid, &uid, sizeof (GNUNET_HashCode))) | 454 | if (0 == memcmp (&pid, &uid, sizeof (struct GNUNET_HashCode))) |
455 | break; | 455 | break; |
456 | pos = pos->next; | 456 | pos = pos->next; |
457 | } | 457 | } |
@@ -661,7 +661,7 @@ static void | |||
661 | run (void *cls, char *const *args, const char *cfgfile, | 661 | run (void *cls, char *const *args, const char *cfgfile, |
662 | const struct GNUNET_CONFIGURATION_Handle *c) | 662 | const struct GNUNET_CONFIGURATION_Handle *c) |
663 | { | 663 | { |
664 | GNUNET_HashCode me; | 664 | struct GNUNET_HashCode me; |
665 | char *my_name; | 665 | char *my_name; |
666 | int my_name_is_a_dup; | 666 | int my_name_is_a_dup; |
667 | 667 | ||