From: Matthias Wachs Date: Fri, 16 Apr 2010 07:58:56 +0000 (+0000) Subject: removed peer from hostlist structure X-Git-Tag: initial-import-from-subversion-38251~22143 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e3ba93b28f79cd7dd16a605e1077a95490bf132c;p=oweals%2Fgnunet.git removed peer from hostlist structure --- diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c index 9fc1eb71e..9ad65fe35 100644 --- a/src/hostlist/hostlist-client.c +++ b/src/hostlist/hostlist-client.c @@ -51,8 +51,14 @@ */ struct Hostlist { + /** + * previous entry, used to manage entries in a double linked list + */ struct Hostlist * prev; + /** + * next entry, used to manage entries in a double linked list + */ struct Hostlist * next; /** @@ -60,11 +66,6 @@ struct Hostlist */ const char *hostlist_uri; - /** - * Peer offering the hostlist. TO BE REMOVED. - */ - struct GNUNET_PeerIdentity peer; - /** * Value describing the quality of the hostlist, the bigger the better but (should) never < 0 * used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in data structure is reached @@ -78,22 +79,22 @@ struct Hostlist /** * Time the hostlist advertisement was recieved and the entry was created */ - struct GNUNET_TIME_Absolute time_creation; + struct GNUNET_TIME_Absolute time_creation; /** * Last time the hostlist was obtained */ - struct GNUNET_TIME_Absolute time_last_usage; + struct GNUNET_TIME_Absolute time_last_usage; /** * Number of HELLO messages obtained during last download */ - uint32_t hello_count; + uint32_t hello_count; /** * Number of times the hostlist was obtained */ - uint32_t times_used; + uint32_t times_used; }; @@ -869,7 +870,6 @@ advertisement_handler (void *cls, return GNUNET_OK; } hostlist = GNUNET_malloc (sizeof (struct Hostlist) + uri_size); - hostlist->peer = *peer; hostlist->hostlist_uri = (const char*) &hostlist[1]; memcpy (&hostlist[1], uri, uri_size); hostlist->time_creation = GNUNET_TIME_absolute_get();