X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fpeerinfo%2Ftest_peerinfo_api.c;h=12abe26db7136383790e10f70e8f354cc5545ed8;hb=4e2504a967ba09643c6dd7e3b9ce400e30adcb3d;hp=1dc5d960182130486b2a650e0cbc12d327f889f0;hpb=c2d9d1e64c9801122caaa6b429fc67706db5c9d7;p=oweals%2Fgnunet.git diff --git a/src/peerinfo/test_peerinfo_api.c b/src/peerinfo/test_peerinfo_api.c index 1dc5d9601..12abe26db 100644 --- a/src/peerinfo/test_peerinfo_api.c +++ b/src/peerinfo/test_peerinfo_api.c @@ -1,21 +1,19 @@ /* This file is part of GNUnet. - Copyright (C) 2004, 2009 Christian Grothoff (and other contributing authors) + Copyright (C) 2004, 2009 GNUnet e.V. - GNUnet is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3, or (at your - option) any later version. + GNUnet is free software: you can redistribute it and/or modify it + under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - along with GNUnet; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. + Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . */ /** @@ -119,8 +117,7 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer, retries++; add_peer (); ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, NULL, - GNUNET_TIME_relative_multiply - (GNUNET_TIME_UNIT_SECONDS, 15), &process, + &process, cls); return; } @@ -135,7 +132,8 @@ process (void *cls, const struct GNUNET_PeerIdentity *peer, { GNUNET_assert (3 == global_ret); agc = 3; - GNUNET_HELLO_iterate_addresses (hello, GNUNET_NO, &check_it, &agc); + GNUNET_HELLO_iterate_addresses (hello, GNUNET_NO, + &check_it, &agc); GNUNET_assert (agc == 0); global_ret = 2; } @@ -151,8 +149,7 @@ run (void *cls, GNUNET_assert (NULL != h); add_peer (); ic = GNUNET_PEERINFO_iterate (h, GNUNET_NO, &pid, - GNUNET_TIME_relative_multiply - (GNUNET_TIME_UNIT_SECONDS, 15), &process, cls); + &process, cls); }