diff options
Diffstat (limited to 'src/social/gnunet-social.c')
-rw-r--r-- | src/social/gnunet-social.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c index 1da51243e..b864b828e 100644 --- a/src/social/gnunet-social.c +++ b/src/social/gnunet-social.c | |||
@@ -563,7 +563,7 @@ slicer_recv_method (void *cls, | |||
563 | "%s (flags: %x)\n", | 563 | "%s (flags: %x)\n", |
564 | message_id, method_name, ntohl (meth->flags)); | 564 | message_id, method_name, ntohl (meth->flags)); |
565 | /* routing header is missing, so we just print double newline */ | 565 | /* routing header is missing, so we just print double newline */ |
566 | printf(".\n\n"); | 566 | printf("\n"); |
567 | /* we output . instead of | to indicate that this is not proper PSYC syntax */ | 567 | /* we output . instead of | to indicate that this is not proper PSYC syntax */ |
568 | /* FIXME: use libpsyc here */ | 568 | /* FIXME: use libpsyc here */ |
569 | } | 569 | } |
@@ -588,10 +588,11 @@ slicer_recv_modifier (void *cls, | |||
588 | "Received modifier for message ID %" PRIu64 ":\n" | 588 | "Received modifier for message ID %" PRIu64 ":\n" |
589 | "%c%s: %.*s (size: %u)\n", | 589 | "%c%s: %.*s (size: %u)\n", |
590 | message_id, oper, name, value_size, (const char *) value, value_size); | 590 | message_id, oper, name, value_size, (const char *) value, value_size); |
591 | #endif | 591 | #else |
592 | /* obviously not binary safe */ | 592 | /* obviously not binary safe */ |
593 | printf("%c%s\t%.*s\n", | 593 | printf("%c%s\t%.*s\n", |
594 | oper, name, value_size, (const char *) value); | 594 | oper, name, value_size, (const char *) value); |
595 | #endif | ||
595 | } | 596 | } |
596 | 597 | ||
597 | 598 | ||
@@ -611,10 +612,11 @@ slicer_recv_data (void *cls, | |||
611 | "Received data for message ID %" PRIu64 ":\n" | 612 | "Received data for message ID %" PRIu64 ":\n" |
612 | "%.*s\n", | 613 | "%.*s\n", |
613 | message_id, data_size, (const char *) data); | 614 | message_id, data_size, (const char *) data); |
614 | #endif | 615 | #else |
615 | /* obviously not binary safe */ | 616 | /* obviously not binary safe */ |
616 | printf("%s\n%.*s\n", | 617 | printf("%s\n%.*s\n", |
617 | method_received, data_size, (const char *) data); | 618 | method_received, data_size, (const char *) data); |
619 | #endif | ||
618 | } | 620 | } |
619 | 621 | ||
620 | 622 | ||
@@ -1016,6 +1018,7 @@ app_connected (void *cls) | |||
1016 | guest_enter (&place_pub_key, &peer); | 1018 | guest_enter (&place_pub_key, &peer); |
1017 | } | 1019 | } |
1018 | } | 1020 | } |
1021 | printf(".\n"); | ||
1019 | } | 1022 | } |
1020 | 1023 | ||
1021 | 1024 | ||
@@ -1161,6 +1164,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
1161 | { | 1164 | { |
1162 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1165 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1163 | _("--place missing or invalid.\n")); | 1166 | _("--place missing or invalid.\n")); |
1167 | /* FIXME: why does it segfault here? */ | ||
1164 | exit_fail (); | 1168 | exit_fail (); |
1165 | return; | 1169 | return; |
1166 | } | 1170 | } |
@@ -1350,8 +1354,8 @@ main (int argc, char *const *argv) | |||
1350 | "gnunet-social --guest-leave --place <PUBKEY>\n" | 1354 | "gnunet-social --guest-leave --place <PUBKEY>\n" |
1351 | "gnunet-social --guest-talk --place <PUBKEY> --method <METHOD_NAME> --data <MESSAGE_BODY>\n" | 1355 | "gnunet-social --guest-talk --place <PUBKEY> --method <METHOD_NAME> --data <MESSAGE_BODY>\n" |
1352 | "\n" | 1356 | "\n" |
1353 | "gnunet-social --history-replay --place <PUBKEY> --start <MSGID> --until <MSGID> [--method <METHOD_PREFIX>]\n" | 1357 | "gnunet-social --replay --place <PUBKEY> --start <MSGID> --until <MSGID> [--method <METHOD_PREFIX>]\n" |
1354 | "gnunet-social --history-replay-latest --place <PUBKEY> --limit <MSG_LIMIT> [--method <METHOD_PREFIX>]\n" | 1358 | "gnunet-social --replay-latest --place <PUBKEY> --limit <MSG_LIMIT> [--method <METHOD_PREFIX>]\n" |
1355 | "\n" | 1359 | "\n" |
1356 | "gnunet-social --look-at --place <PUBKEY> --name <FULL_NAME>\n" | 1360 | "gnunet-social --look-at --place <PUBKEY> --name <FULL_NAME>\n" |
1357 | "gnunet-social --look-for --place <PUBKEY> --name <NAME_PREFIX>\n"; | 1361 | "gnunet-social --look-for --place <PUBKEY> --name <NAME_PREFIX>\n"; |