aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-26 20:25:37 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-26 20:25:37 +0200
commitaa78134a557079ce570345e751e4c36c4b2ba79a (patch)
treef7bf25950513285184e2426109235337d0aef8be /src/hostlist
parent1f2674fe293be7c1a852fbe4a7241fbcb149078f (diff)
downloadgnunet-aa78134a557079ce570345e751e4c36c4b2ba79a.tar.gz
gnunet-aa78134a557079ce570345e751e4c36c4b2ba79a.zip
-fix many more typos
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_client.c18
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_server.c8
2 files changed, 13 insertions, 13 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_client.c b/src/hostlist/gnunet-daemon-hostlist_client.c
index b377f2041..44966d3de 100644
--- a/src/hostlist/gnunet-daemon-hostlist_client.c
+++ b/src/hostlist/gnunet-daemon-hostlist_client.c
@@ -83,7 +83,7 @@
83#define HOSTLIST_SUCCESSFUL_DOWNLOAD 100 83#define HOSTLIST_SUCCESSFUL_DOWNLOAD 100
84 84
85/** 85/**
86 * Value added for each valid HELLO recived during a hostlist download 86 * Value added for each valid HELLO received during a hostlist download
87 */ 87 */
88#define HOSTLIST_SUCCESSFUL_HELLO 1 88#define HOSTLIST_SUCCESSFUL_HELLO 1
89 89
@@ -111,7 +111,7 @@ struct Hostlist
111 /** 111 /**
112 * Value describing the quality of the hostlist, the bigger the better but (should) never < 0 112 * Value describing the quality of the hostlist, the bigger the better but (should) never < 0
113 * used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in data structure is reached 113 * used for deciding which hostlist is replaced if MAX_NUMBER_HOSTLISTS in data structure is reached
114 * intial value = HOSTLIST_INITIAL 114 * initial value = HOSTLIST_INITIAL
115 * increased every successful download by HOSTLIST_SUCCESSFULL_DOWNLOAD 115 * increased every successful download by HOSTLIST_SUCCESSFULL_DOWNLOAD
116 * increased every successful download by number of obtained HELLO messages 116 * increased every successful download by number of obtained HELLO messages
117 * decreased every failed download by HOSTLIST_SUCCESSFULL_DOWNLOAD 117 * decreased every failed download by HOSTLIST_SUCCESSFULL_DOWNLOAD
@@ -119,7 +119,7 @@ struct Hostlist
119 uint64_t quality; 119 uint64_t quality;
120 120
121 /** 121 /**
122 * Time the hostlist advertisement was recieved and the entry was created 122 * Time the hostlist advertisement was received and the entry was created
123 */ 123 */
124 struct GNUNET_TIME_Absolute time_creation; 124 struct GNUNET_TIME_Absolute time_creation;
125 125
@@ -211,7 +211,7 @@ static struct GNUNET_SCHEDULER_Task *ti_check_download;
211static struct GNUNET_SCHEDULER_Task *ti_download; 211static struct GNUNET_SCHEDULER_Task *ti_download;
212 212
213/** 213/**
214 * ID of the task saving the hostlsit in a regular intervall 214 * ID of the task saving the hostlsit in a regular interval
215 */ 215 */
216static struct GNUNET_SCHEDULER_Task *ti_saving_task; 216static struct GNUNET_SCHEDULER_Task *ti_saving_task;
217 217
@@ -246,7 +246,7 @@ static struct Hostlist *linked_list_tail;
246static struct Hostlist *current_hostlist; 246static struct Hostlist *current_hostlist;
247 247
248/** 248/**
249 * Size of the linke list used to store hostlists 249 * Size of the linked list used to store hostlists
250 */ 250 */
251static unsigned int linked_list_size; 251static unsigned int linked_list_size;
252 252
@@ -1098,7 +1098,7 @@ task_download_dispatcher (void *cls)
1098 else 1098 else
1099 { 1099 {
1100 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1100 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1101 "Download in progess, have to wait...\n"); 1101 "Download in progress, have to wait...\n");
1102 ti_download_dispatcher_task = 1102 ti_download_dispatcher_task =
1103 GNUNET_SCHEDULER_add_delayed (WAITING_INTERVAL, 1103 GNUNET_SCHEDULER_add_delayed (WAITING_INTERVAL,
1104 &task_download_dispatcher, 1104 &task_download_dispatcher,
@@ -1160,7 +1160,7 @@ task_check (void *cls)
1160 1160
1161 1161
1162/** 1162/**
1163 * This tasks sets hostlist testing to allowed after intervall between to testings is reached 1163 * This tasks sets hostlist testing to allowed after interval between to testings is reached
1164 * 1164 *
1165 * @param cls closure 1165 * @param cls closure
1166 */ 1166 */
@@ -1249,7 +1249,7 @@ handler_advertisement (const char *uri)
1249 1249
1250 uri_size = strlen (uri) + 1; 1250 uri_size = strlen (uri) + 1;
1251 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1251 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1252 "Hostlist client recieved advertisement containing URI `%s'\n", 1252 "Hostlist client received advertisement containing URI `%s'\n",
1253 uri); 1253 uri);
1254 if (GNUNET_NO != linked_list_contains (uri)) 1254 if (GNUNET_NO != linked_list_contains (uri))
1255 { 1255 {
@@ -1440,7 +1440,7 @@ load_hostlist_file ()
1440 GNUNET_CONTAINER_DLL_insert (linked_list_head, linked_list_tail, hostlist); 1440 GNUNET_CONTAINER_DLL_insert (linked_list_head, linked_list_tail, hostlist);
1441 linked_list_size++; 1441 linked_list_size++;
1442 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1442 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1443 "Added hostlist entry eith URI `%s' \n", 1443 "Added hostlist entry with URI `%s' \n",
1444 hostlist->hostlist_uri); 1444 hostlist->hostlist_uri);
1445 GNUNET_free (uri); 1445 GNUNET_free (uri);
1446 uri = NULL; 1446 uri = NULL;
diff --git a/src/hostlist/gnunet-daemon-hostlist_server.c b/src/hostlist/gnunet-daemon-hostlist_server.c
index fb80f6331..46b18b266 100644
--- a/src/hostlist/gnunet-daemon-hostlist_server.c
+++ b/src/hostlist/gnunet-daemon-hostlist_server.c
@@ -36,7 +36,7 @@
36 36
37 37
38/** 38/**
39 * How long until our hostlist advertisment transmission via CORE should 39 * How long until our hostlist advertisement transmission via CORE should
40 * time out? 40 * time out?
41 */ 41 */
42#define GNUNET_ADV_TIMEOUT \ 42#define GNUNET_ADV_TIMEOUT \
@@ -127,7 +127,7 @@ struct HostSet
127 127
128 128
129/** 129/**
130 * NULL if we are not currenlty iterating over peer information. 130 * NULL if we are not currently iterating over peer information.
131 */ 131 */
132static struct HostSet *builder; 132static struct HostSet *builder;
133 133
@@ -184,7 +184,7 @@ finish_response ()
184 * @param cls closure, an `int *` 184 * @param cls closure, an `int *`
185 * @param address the address (ignored) 185 * @param address the address (ignored)
186 * @param expiration expiration time (call is ignored if this is in the past) 186 * @param expiration expiration time (call is ignored if this is in the past)
187 * @return #GNUNET_SYSERR to stop iterating (unless expiration has occured) 187 * @return #GNUNET_SYSERR to stop iterating (unless expiration has occurred)
188 */ 188 */
189static int 189static int
190check_has_addr (void *cls, 190check_has_addr (void *cls,
@@ -343,7 +343,7 @@ accept_policy_callback (void *cls,
343 * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). 343 * can be set with the #MHD_OPTION_NOTIFY_COMPLETED).
344 * Initially, `*con_cls` will be NULL. 344 * Initially, `*con_cls` will be NULL.
345 * @return #MHD_YES if the connection was handled successfully, 345 * @return #MHD_YES if the connection was handled successfully,
346 * #MHD_NO if the socket must be closed due to a serios 346 * #MHD_NO if the socket must be closed due to a serious
347 * error while handling the request 347 * error while handling the request
348 */ 348 */
349static MHD_RESULT 349static MHD_RESULT