diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-09 09:27:31 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-09 09:27:31 +0000 |
commit | abdcb212040256326f515214b1658ff516988bea (patch) | |
tree | f8e43ffa472386c2b4f44d334384fb26c4153fb9 /src/ats-tool | |
parent | f459018a9d3dcaadcb5bcb3726330e00ef444f4d (diff) |
fixing output + additional peer id check
Diffstat (limited to 'src/ats-tool')
-rw-r--r-- | src/ats-tool/gnunet-ats.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ats-tool/gnunet-ats.c b/src/ats-tool/gnunet-ats.c index 89200ce1d5..2fd30c1a55 100644 --- a/src/ats-tool/gnunet-ats.c +++ b/src/ats-tool/gnunet-ats.c @@ -143,8 +143,8 @@ end (void *cls, } if (0 < pending) fprintf (stderr, _("%u address resolutions had a timeout\n"), pending); - - fprintf (stderr, _("ATS returned results for %u addresses\n"), results); + if (op_list_used || op_list_all) + fprintf (stderr, _("ATS returned results for %u addresses\n"), results); ret = 0; } @@ -423,6 +423,13 @@ testservice_ats (void *cls, fprintf (stderr, _("No preference type given!\n")); return; } + if (NULL == pid_str) + { + fprintf (stderr, _("No peer given!\n")); + return; + } + + for (c = 0; c<strlen(type_str); c++) { |