From abdcb212040256326f515214b1658ff516988bea Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 9 Jul 2013 09:27:31 +0000 Subject: fixing output + additional peer id check --- src/ats-tool/gnunet-ats.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/ats-tool/gnunet-ats.c') 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, } 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