summaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_addresses.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.c')
-rw-r--r--src/ats/gnunet-service-ats_addresses.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c
index 863b7cc40..acf550196 100644
--- a/src/ats/gnunet-service-ats_addresses.c
+++ b/src/ats/gnunet-service-ats_addresses.c
@@ -252,6 +252,7 @@ enum ATS_Mode
MODE_MLP
};
+
/**
* Pending Address suggestion requests
*/
@@ -273,6 +274,7 @@ struct GAS_Addresses_Suggestion_Requests
struct GNUNET_PeerIdentity id;
};
+
/**
* Handle for ATS address component
*/
@@ -378,7 +380,9 @@ static unsigned int
assemble_ats_information (const struct ATS_Address *aa, struct GNUNET_ATS_Information **dest)
{
unsigned int ats_count = GNUNET_ATS_PropertyCount - 1;
- struct GNUNET_ATS_Information *ats = GNUNET_malloc (ats_count * sizeof (struct GNUNET_ATS_Information));
+ struct GNUNET_ATS_Information *ats;
+
+ ats = GNUNET_malloc (ats_count * sizeof (struct GNUNET_ATS_Information));
(*dest) = ats;
ats[0].type = ntohl(GNUNET_ATS_UTILIZATION_UP);
@@ -400,6 +404,7 @@ assemble_ats_information (const struct ATS_Address *aa, struct GNUNET_ATS_Infor
return ats_count;
}
+
/**
* Disassemble ATS information and update address
*