changes
[oweals/gnunet.git] / src / ats / test_ats_api_scheduling_destroy_address.c
index 68ff5bcbc9d433dd77212054f65617bf0b498a77..0d139a4f0799939847e99ac6316a1f0ab76baa68 100644 (file)
@@ -60,7 +60,7 @@ static struct PeerContext p;
 /**
  * HELLO address
  */
-struct GNUNET_HELLO_Address hello_address;
+struct GNUNET_HELLO_Address test_hello_address;
 
 
 static void
@@ -164,7 +164,7 @@ address_suggest_cb (void *cls, const struct GNUNET_HELLO_Address *address,
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Destroying address for `%s'\n",
                 GNUNET_i2s (&address->peer));
     /* Destroying address */
-    GNUNET_ATS_address_destroyed (sched_ats, &hello_address, test_addr.session);
+    GNUNET_ATS_address_destroyed (sched_ats, &test_hello_address, test_addr.session);
     /* Request address */
     GNUNET_ATS_suggest_address (sched_ats, &p.id);
     wait_task = GNUNET_SCHEDULER_add_delayed (WAIT_TIMEOUT, &end, NULL);
@@ -207,11 +207,11 @@ run (void *cls,
   create_test_address (&test_addr, "test", NULL, "test", strlen ("test") + 1);
 
   /* Adding address without session */
-  hello_address.peer = p.id;
-  hello_address.transport_name = test_addr.plugin;
-  hello_address.address = test_addr.addr;
-  hello_address.address_length = test_addr.addr_len;
-  GNUNET_ATS_address_add (sched_ats, &hello_address, test_addr.session, NULL, 0);
+  test_hello_address.peer = p.id;
+  test_hello_address.transport_name = test_addr.plugin;
+  test_hello_address.address = test_addr.addr;
+  test_hello_address.address_length = test_addr.addr_len;
+  GNUNET_ATS_address_add (sched_ats, &test_hello_address, test_addr.session, NULL, 0);
 
   /* Request address */
   GNUNET_ATS_suggest_address (sched_ats, &p.id);