diff options
Diffstat (limited to 'src/ats/test_ats2_lib.c')
-rw-r--r-- | src/ats/test_ats2_lib.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ats/test_ats2_lib.c b/src/ats/test_ats2_lib.c index 990eb0670..5c51e5322 100644 --- a/src/ats/test_ats2_lib.c +++ b/src/ats/test_ats2_lib.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
@@ -31,13 +31,11 @@ | |||
31 | */ | 31 | */ |
32 | static int ret; | 32 | static int ret; |
33 | 33 | ||
34 | |||
35 | /** | 34 | /** |
36 | * @brief The time available until the test shuts down | 35 | * @brief The time available until the test shuts down |
37 | */ | 36 | */ |
38 | static struct GNUNET_TIME_Relative timeout; | 37 | static struct GNUNET_TIME_Relative timeout; |
39 | 38 | ||
40 | |||
41 | /** | 39 | /** |
42 | * @brief ATS Application Handle | 40 | * @brief ATS Application Handle |
43 | * | 41 | * |
@@ -64,6 +62,7 @@ static struct GNUNET_PeerIdentity other_peer; | |||
64 | */ | 62 | */ |
65 | static struct GNUNET_ATS_SessionRecord *sr; | 63 | static struct GNUNET_ATS_SessionRecord *sr; |
66 | 64 | ||
65 | |||
67 | /** | 66 | /** |
68 | * @brief Called whenever allocation changed | 67 | * @brief Called whenever allocation changed |
69 | * | 68 | * |
@@ -74,7 +73,7 @@ static struct GNUNET_ATS_SessionRecord *sr; | |||
74 | * @param bandwidth_out | 73 | * @param bandwidth_out |
75 | * @param bandwidth_in | 74 | * @param bandwidth_in |
76 | * | 75 | * |
77 | * @return | 76 | * @return |
78 | */ | 77 | */ |
79 | static void | 78 | static void |
80 | allocation_cb (void *cls, | 79 | allocation_cb (void *cls, |
@@ -116,9 +115,9 @@ init_both (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
116 | ah = GNUNET_ATS_application_init (cfg); | 115 | ah = GNUNET_ATS_application_init (cfg); |
117 | GNUNET_assert (NULL != ah); | 116 | GNUNET_assert (NULL != ah); |
118 | th = GNUNET_ATS_transport_init (cfg, | 117 | th = GNUNET_ATS_transport_init (cfg, |
119 | allocation_cb, | 118 | &allocation_cb, |
120 | NULL, | 119 | NULL, |
121 | suggestion_cb, | 120 | &suggestion_cb, |
122 | NULL); | 121 | NULL); |
123 | GNUNET_assert (NULL != ah); | 122 | GNUNET_assert (NULL != ah); |
124 | } | 123 | } |
@@ -227,7 +226,7 @@ run (void *cls, | |||
227 | * @param argc | 226 | * @param argc |
228 | * @param argv[] | 227 | * @param argv[] |
229 | * | 228 | * |
230 | * @return | 229 | * @return |
231 | */ | 230 | */ |
232 | int | 231 | int |
233 | main (int argc, | 232 | main (int argc, |