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) | |
download | gnunet-abdcb212040256326f515214b1658ff516988bea.tar.gz gnunet-abdcb212040256326f515214b1658ff516988bea.zip |
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 89200ce1d..2fd30c1a5 100644 --- a/src/ats-tool/gnunet-ats.c +++ b/src/ats-tool/gnunet-ats.c | |||
@@ -143,8 +143,8 @@ end (void *cls, | |||
143 | } | 143 | } |
144 | if (0 < pending) | 144 | if (0 < pending) |
145 | fprintf (stderr, _("%u address resolutions had a timeout\n"), pending); | 145 | fprintf (stderr, _("%u address resolutions had a timeout\n"), pending); |
146 | 146 | if (op_list_used || op_list_all) | |
147 | fprintf (stderr, _("ATS returned results for %u addresses\n"), results); | 147 | fprintf (stderr, _("ATS returned results for %u addresses\n"), results); |
148 | ret = 0; | 148 | ret = 0; |
149 | } | 149 | } |
150 | 150 | ||
@@ -423,6 +423,13 @@ testservice_ats (void *cls, | |||
423 | fprintf (stderr, _("No preference type given!\n")); | 423 | fprintf (stderr, _("No preference type given!\n")); |
424 | return; | 424 | return; |
425 | } | 425 | } |
426 | if (NULL == pid_str) | ||
427 | { | ||
428 | fprintf (stderr, _("No peer given!\n")); | ||
429 | return; | ||
430 | } | ||
431 | |||
432 | |||
426 | 433 | ||
427 | for (c = 0; c<strlen(type_str); c++) | 434 | for (c = 0; c<strlen(type_str); c++) |
428 | { | 435 | { |