aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am3
-rw-r--r--src/abd/gnunet-abd.c4
-rw-r--r--src/abd/gnunet-service-abd.c10
-rw-r--r--src/ats/ats_api_scheduling.c2
-rw-r--r--src/ats/gnunet-service-ats_preferences.c4
-rw-r--r--src/ats/perf_ats_solver.c4
-rw-r--r--src/ats/plugin_ats_proportional.c2
-rw-r--r--src/cadet/cadet_api.c12
-rw-r--r--src/cadet/gnunet-cadet-profiler.c14
-rw-r--r--src/cadet/gnunet-service-cadet_channel.c2
-rw-r--r--src/cadet/gnunet-service-cadet_connection.c6
-rw-r--r--src/cadet/gnunet-service-cadet_dht.c2
-rw-r--r--src/cadet/gnunet-service-cadet_paths.c4
-rw-r--r--src/cadet/gnunet-service-cadet_peer.c12
-rw-r--r--src/cadet/gnunet-service-cadet_tunnels.c12
-rw-r--r--src/cadet/test_cadet.c6
-rw-r--r--src/cadet/test_cadet_flow.c6
-rw-r--r--src/consensus/gnunet-consensus-profiler.c2
-rw-r--r--src/consensus/gnunet-service-consensus.c8
-rw-r--r--src/conversation/gnunet-conversation-test.c2
-rw-r--r--src/conversation/gnunet-helper-audio-record.c2
-rw-r--r--src/core/gnunet-service-core.c2
-rw-r--r--src/core/gnunet-service-core_sessions.c2
-rw-r--r--src/datastore/datastore_api.c4
-rw-r--r--src/datastore/plugin_datastore_mysql.c2
-rw-r--r--src/datastore/plugin_datastore_postgres.c6
-rw-r--r--src/exit/gnunet-daemon-exit.c8
-rw-r--r--src/exit/gnunet-helper-exit.c2
-rw-r--r--src/fragmentation/defragmentation.c2
-rw-r--r--src/fragmentation/fragmentation.c2
-rw-r--r--src/fs/fs_api.c72
-rw-r--r--src/fs/fs_directory.c14
-rw-r--r--src/fs/fs_download.c4
-rw-r--r--src/fs/fs_publish.c4
-rw-r--r--src/fs/fs_sharetree.c2
-rw-r--r--src/fs/fs_tree.c2
-rw-r--r--src/fs/fs_uri.c4
-rw-r--r--src/fs/gnunet-publish.c2
-rw-r--r--src/fs/gnunet-service-fs.c2
-rw-r--r--src/fs/gnunet-service-fs_cadet_client.c2
-rw-r--r--src/fs/gnunet-service-fs_cp.c2
-rw-r--r--src/fs/gnunet-service-fs_pe.c2
-rw-r--r--src/fs/gnunet-service-fs_pr.c8
-rw-r--r--src/fs/gnunet-service-fs_put.c2
-rw-r--r--src/fs/test_fs_directory.c2
-rw-r--r--src/fs/test_fs_file_information.c2
-rw-r--r--src/hello/hello.c4
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_client.c18
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_server.c8
-rw-r--r--src/include/gnunet_nt_lib.h2
-rw-r--r--src/include/gnunet_transport_plugin.h4
-rw-r--r--[-rwxr-xr-x]src/messenger/gnunet-messenger.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/gnunet-service-messenger.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/gnunet-service-messenger_member.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/gnunet-service-messenger_message_store.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/gnunet-service-messenger_operation_store.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/messenger_api_contact_store.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/messenger_api_message.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/messenger_api_room.c0
-rw-r--r--[-rwxr-xr-x]src/messenger/messenger_api_room.h0
-rw-r--r--src/my/my.c2
-rw-r--r--src/my/my_result_helper.c8
-rw-r--r--src/my/test_my.c4
-rw-r--r--src/mysql/mysql.c2
-rw-r--r--src/namestore/gnunet-namestore-fcfsd.c2
-rw-r--r--src/namestore/gnunet-service-namestore.c14
-rw-r--r--src/namestore/namestore_api.c6
-rw-r--r--src/namestore/perf_namestore_api_zone_iteration.c2
-rw-r--r--src/namestore/plugin_namestore_flat.c2
-rw-r--r--src/nat-auto/gnunet-nat-auto.c2
-rw-r--r--src/nat-auto/gnunet-nat-auto_legacy.c2
-rw-r--r--src/nat-auto/gnunet-nat-server.c2
-rw-r--r--src/nat-auto/nat_auto_api_test.c2
-rw-r--r--src/nat/nat_api.c2
-rw-r--r--src/nat/nat_api_stun.c2
-rw-r--r--src/nat/test_nat_mini.c6
-rw-r--r--src/peerinfo-tool/plugin_rest_peerinfo.c2
-rw-r--r--src/peerstore/peerstore_api.c4
-rw-r--r--src/pt/gnunet-daemon-pt.c2
-rw-r--r--src/pt/test_gns_vpn.c2
-rw-r--r--src/pt/test_gnunet_vpn.c2
-rw-r--r--src/reclaim/gnunet-service-reclaim.c2
-rw-r--r--src/reclaim/gnunet-service-reclaim_tickets.c45
-rw-r--r--src/reclaim/oidc_helper.c4
-rw-r--r--src/reclaim/plugin_reclaim_credential_jwt.c34
-rw-r--r--src/reclaim/plugin_reclaim_credential_pabc.c11
-rw-r--r--src/reclaim/plugin_rest_openid_connect.c31
-rw-r--r--src/reclaim/plugin_rest_pabc.c2
-rw-r--r--src/reclaim/plugin_rest_reclaim.c4
-rw-r--r--src/reclaim/reclaim_api.c11
-rw-r--r--src/reclaim/reclaim_credential.c15
-rw-r--r--src/regex/gnunet-daemon-regexprofiler.c2
-rw-r--r--src/regex/gnunet-regex-profiler.c8
-rw-r--r--src/regex/gnunet-regex-simulation-profiler.c2
-rw-r--r--src/regex/gnunet-service-regex.c2
-rw-r--r--src/regex/perf-regex.c2
-rw-r--r--src/regex/plugin_block_regex.c2
-rw-r--r--src/regex/regex_block_lib.c4
-rw-r--r--src/regex/regex_internal.c10
-rw-r--r--src/regex/regex_internal_dht.c6
-rw-r--r--src/regex/regex_test_lib.c10
-rw-r--r--src/regex/regex_test_random.c2
-rw-r--r--src/regex/test_regex_api.c2
-rw-r--r--src/regex/test_regex_eval_api.c2
-rw-r--r--src/regex/test_regex_proofs.c2
-rw-r--r--src/rest/rest.c4
-rw-r--r--src/rps/gnunet-rps-profiler.c10
-rw-r--r--src/rps/gnunet-service-rps.c37
-rw-r--r--src/rps/gnunet-service-rps_custommap.c4
-rw-r--r--src/rps/rps-sampler_common.c4
-rw-r--r--src/rps/rps-test_util.c2
-rw-r--r--src/rps/rps_api.c10
-rw-r--r--src/rps/test_rps.c10
-rw-r--r--src/scalarproduct/gnunet-scalarproduct.c2
-rw-r--r--src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c2
-rw-r--r--src/scalarproduct/gnunet-service-scalarproduct_alice.c2
-rw-r--r--src/scalarproduct/scalarproduct_api.c2
-rw-r--r--src/secretsharing/gnunet-secretsharing-profiler.c2
-rw-r--r--src/secretsharing/gnunet-service-secretsharing.c8
-rw-r--r--src/secretsharing/secretsharing_api.c4
-rw-r--r--src/set/gnunet-service-set_union.c10
-rw-r--r--src/set/set_api.c6
-rw-r--r--src/set/test_set_api.c2
-rw-r--r--src/seti/seti_api.c2
-rw-r--r--src/setu/gnunet-service-setu.c12
-rw-r--r--src/setu/perf_setu_api.c2
-rw-r--r--src/setu/setu_api.c2
-rw-r--r--src/setu/test_setu_api.c2
-rw-r--r--src/statistics/gnunet-statistics.c2
-rw-r--r--src/statistics/statistics_api.c2
-rw-r--r--src/testbed/generate-underlay-topology.c4
-rw-r--r--src/testbed/gnunet-helper-testbed.c4
-rw-r--r--src/testbed/gnunet-service-test-barriers.c2
-rw-r--r--src/testbed/gnunet-service-testbed_barriers.c4
-rw-r--r--src/testbed/gnunet-service-testbed_cpustatus.c2
-rw-r--r--src/testbed/gnunet-service-testbed_links.c8
-rw-r--r--src/testbed/gnunet-service-testbed_oc.c8
-rw-r--r--src/testbed/gnunet-service-testbed_peers.c12
-rw-r--r--src/testbed/gnunet-testbed-profiler.c2
-rw-r--r--src/testbed/test_gnunet_helper_testbed.c4
-rw-r--r--src/testbed/test_testbed_api.c6
-rw-r--r--src/testbed/test_testbed_api_2peers_1controller.c4
-rw-r--r--src/testbed/test_testbed_api_3peers_3controllers.c4
-rw-r--r--src/testbed/test_testbed_api_barriers.c2
-rw-r--r--src/testbed/test_testbed_api_controllerlink.c10
-rw-r--r--src/testbed/test_testbed_api_operations.c6
-rw-r--r--src/testbed/test_testbed_api_test.c2
-rw-r--r--src/testbed/test_testbed_api_test_timeout.c2
-rw-r--r--src/testbed/testbed_api.c4
-rw-r--r--src/testbed/testbed_api_cmd_controller.c4
-rw-r--r--src/testbed/testbed_api_cmd_tng_service.c4
-rw-r--r--src/testbed/testbed_api_hosts.c2
-rw-r--r--src/testbed/testbed_api_operations.c8
-rw-r--r--src/testbed/testbed_api_statistics.c2
-rw-r--r--src/testbed/testbed_api_test.c2
-rw-r--r--src/testbed/testbed_api_testbed.c10
-rw-r--r--src/testbed/testbed_api_topology.c2
-rw-r--r--src/testing/testing_api_cmd_hello_world_birth.c8
-rw-r--r--src/testing/testing_api_loop.c2
-rw-r--r--src/transport/gnunet-communicator-tcp.c2
-rw-r--r--src/transport/gnunet-communicator-udp.c12
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c2
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c4
-rw-r--r--src/transport/gnunet-service-tng.c56
-rw-r--r--src/transport/gnunet-service-transport.c10
-rw-r--r--src/transport/gnunet-service-transport_validation.c6
-rw-r--r--src/transport/gnunet-transport-profiler.c2
-rw-r--r--src/transport/gnunet-transport.c2
-rw-r--r--src/transport/plugin_transport_http_client.c8
-rw-r--r--src/transport/plugin_transport_http_common.c16
-rw-r--r--src/transport/plugin_transport_http_server.c4
-rw-r--r--src/transport/plugin_transport_tcp.c4
-rw-r--r--src/transport/plugin_transport_template.c2
-rw-r--r--src/transport/plugin_transport_udp.c4
-rw-r--r--src/transport/plugin_transport_unix.c2
-rw-r--r--src/transport/plugin_transport_wlan.c4
-rw-r--r--src/transport/tcp_connection_legacy.c4
-rw-r--r--src/transport/tcp_server_legacy.c2
-rw-r--r--src/transport/tcp_server_mst_legacy.c2
-rw-r--r--src/transport/test_communicator_basic.c2
-rw-r--r--src/transport/test_transport_address_switch.c2
-rw-r--r--src/transport/test_transport_api_reliability.c2
-rw-r--r--src/transport/transport-testing-communicator.c2
-rw-r--r--src/transport/transport-testing.c2
-rw-r--r--src/transport/transport-testing2.c2
-rw-r--r--src/transport/transport_api2_application.c4
-rw-r--r--src/transport/transport_api2_communication.c6
-rw-r--r--src/transport/transport_api_core.c2
-rw-r--r--src/util/test_strings.c14
-rw-r--r--src/vpn/gnunet-helper-vpn.c2
-rw-r--r--src/vpn/gnunet-service-vpn.c4
-rw-r--r--src/zonemaster/gnunet-service-zonemaster-monitor.c2
-rw-r--r--src/zonemaster/gnunet-service-zonemaster.c2
193 files changed, 545 insertions, 528 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d8a869acb..5fd00e3f5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,4 @@
1# This Makefile.am is in the public domain 1# This Makefile.am is in the public domain
2#if WANT_FRAMEWORK
3# INTLEMU_SUBDIRS = intlemu
4#endif
5 2
6if HAVE_TESTING 3if HAVE_TESTING
7 TESTING = testing 4 TESTING = testing
diff --git a/src/abd/gnunet-abd.c b/src/abd/gnunet-abd.c
index ff7dd09c5..b1fb767e3 100644
--- a/src/abd/gnunet-abd.c
+++ b/src/abd/gnunet-abd.c
@@ -484,7 +484,7 @@ parse_expiration (const char *expirationstring,
484static void 484static void
485error_cb (void *cls) 485error_cb (void *cls)
486{ 486{
487 fprintf (stderr, "Error occured during lookup, shutting down.\n"); 487 fprintf (stderr, "Error occurred during lookup, shutting down.\n");
488 GNUNET_SCHEDULER_shutdown (); 488 GNUNET_SCHEDULER_shutdown ();
489 return; 489 return;
490} 490}
@@ -499,7 +499,7 @@ add_continuation (void *cls, int32_t success, const char *emsg)
499 if (GNUNET_OK == success) 499 if (GNUNET_OK == success)
500 printf ("Adding successful.\n"); 500 printf ("Adding successful.\n");
501 else 501 else
502 fprintf (stderr, "Error occured during adding, shutting down.\n"); 502 fprintf (stderr, "Error occurred during adding, shutting down.\n");
503 503
504 GNUNET_SCHEDULER_shutdown (); 504 GNUNET_SCHEDULER_shutdown ();
505} 505}
diff --git a/src/abd/gnunet-service-abd.c b/src/abd/gnunet-service-abd.c
index 569d42295..93368da45 100644
--- a/src/abd/gnunet-service-abd.c
+++ b/src/abd/gnunet-service-abd.c
@@ -721,7 +721,7 @@ handle_bidirectional_match (struct DelegationSetQueueEntry *actual_entry,
721 tmp_set->delegation_chain_entry); 721 tmp_set->delegation_chain_entry);
722 722
723 // if one node on the path still needs solutions, this current 723 // if one node on the path still needs solutions, this current
724 // patch cannot fullfil the conditions and therefore stops here 724 // patch cannot fulfill the conditions and therefore stops here
725 // however, it is in the vrh and can be used by the other paths 725 // however, it is in the vrh and can be used by the other paths
726 // related to this path/collection/verification 726 // related to this path/collection/verification
727 if (0 < tmp_set->parent_queue_entry->required_solutions) 727 if (0 < tmp_set->parent_queue_entry->required_solutions)
@@ -1334,7 +1334,7 @@ delegation_chain_fw_resolution_start (void *cls)
1334 } 1334 }
1335 1335
1336 // Pre-check with vrh->dele_chain_.. if match issuer_key 1336 // Pre-check with vrh->dele_chain_.. if match issuer_key
1337 // otherwise FW: start mutliple lookups for each vrh->dele_chain 1337 // otherwise FW: start multiple lookups for each vrh->dele_chain
1338 // A.a <- ... 1338 // A.a <- ...
1339 // X.x <- C 1339 // X.x <- C
1340 // Y.y <- C 1340 // Y.y <- C
@@ -1562,7 +1562,7 @@ delegate_collection_finished (void *cls)
1562 if (GNUNET_ABD_FLAG_BACKWARD & vrh->resolution_algo && 1562 if (GNUNET_ABD_FLAG_BACKWARD & vrh->resolution_algo &&
1563 GNUNET_ABD_FLAG_FORWARD & vrh->resolution_algo) 1563 GNUNET_ABD_FLAG_FORWARD & vrh->resolution_algo)
1564 { 1564 {
1565 // if premature match found don't start bw resultion 1565 // if premature match found don't start bw resolution
1566 if (1 == delegation_chain_fw_resolution_start (vrh)) 1566 if (1 == delegation_chain_fw_resolution_start (vrh))
1567 return; 1567 return;
1568 delegation_chain_bw_resolution_start (vrh); 1568 delegation_chain_bw_resolution_start (vrh);
@@ -1603,8 +1603,8 @@ handle_delegate_collection_cb (void *cls,
1603 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Invalid delegate found\n"); 1603 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Invalid delegate found\n");
1604 continue; 1604 continue;
1605 } 1605 }
1606 // only add the entries that are explicity marked as private 1606 // only add the entries that are explicitly marked as private
1607 // and therefor symbolize the end of a chain 1607 // and therefore symbolize the end of a chain
1608 if (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE) 1608 if (rd[i].flags & GNUNET_GNSRECORD_RF_PRIVATE)
1609 { 1609 {
1610 del_entry = GNUNET_new (struct DelegateRecordEntry); 1610 del_entry = GNUNET_new (struct DelegateRecordEntry);
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index 36162d12f..ea4b27653 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -704,7 +704,7 @@ GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar,
704/** 704/**
705 * A session was destroyed, disassociate it from the 705 * A session was destroyed, disassociate it from the
706 * given address record. If this was an incoming 706 * given address record. If this was an incoming
707 * addess, destroy the address as well. 707 * address, destroy the address as well.
708 * 708 *
709 * @param ar address record to update information for 709 * @param ar address record to update information for
710 * @param session session handle 710 * @param session session handle
diff --git a/src/ats/gnunet-service-ats_preferences.c b/src/ats/gnunet-service-ats_preferences.c
index 636e2db47..0869c65dc 100644
--- a/src/ats/gnunet-service-ats_preferences.c
+++ b/src/ats/gnunet-service-ats_preferences.c
@@ -47,7 +47,7 @@
47#define PREF_AGING_FACTOR 0.95 47#define PREF_AGING_FACTOR 0.95
48 48
49/** 49/**
50 * What is the lowest threshold up to which prefernce values 50 * What is the lowest threshold up to which preference values
51 * are aged, and below which we consider them zero and thus 51 * are aged, and below which we consider them zero and thus
52 * no longer subject to aging? 52 * no longer subject to aging?
53 */ 53 */
@@ -211,7 +211,7 @@ sum_relative_preferences (void *cls,
211 211
212 212
213/** 213/**
214 * Update the total releative preference for a peer by summing 214 * Update the total relative preference for a peer by summing
215 * up the relative preferences all clients have for this peer. 215 * up the relative preferences all clients have for this peer.
216 * 216 *
217 * @param id peer id of the peer for which we should do the update 217 * @param id peer id of the peer for which we should do the update
diff --git a/src/ats/perf_ats_solver.c b/src/ats/perf_ats_solver.c
index 2fbadef4d..363d0cfc9 100644
--- a/src/ats/perf_ats_solver.c
+++ b/src/ats/perf_ats_solver.c
@@ -174,7 +174,7 @@ struct Iteration
174 174
175 175
176/** 176/**
177 * Result for a solver calculcation 177 * Result for a solver calculation
178 */ 178 */
179struct Result 179struct Result
180{ 180{
@@ -1310,7 +1310,7 @@ run (void *cls, char *const *args, const char *cfgfile,
1310 } 1310 }
1311 GNUNET_free (src_filename); 1311 GNUNET_free (src_filename);
1312 1312
1313 /* Calculcate peers */ 1313 /* Calculate peers */
1314 if ((0 == ph.N_peers_start) && (0 == ph.N_peers_end)) 1314 if ((0 == ph.N_peers_start) && (0 == ph.N_peers_end))
1315 { 1315 {
1316 ph.N_peers_start = DEFAULT_PEERS_START; 1316 ph.N_peers_start = DEFAULT_PEERS_START;
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c
index 52476c825..d3062a5c0 100644
--- a/src/ats/plugin_ats_proportional.c
+++ b/src/ats/plugin_ats_proportional.c
@@ -1051,7 +1051,7 @@ GAS_proportional_address_add (void *solver,
1051 * - Removed it from specific network 1051 * - Removed it from specific network
1052 * - Decrease the number of total addresses 1052 * - Decrease the number of total addresses
1053 * - If active: 1053 * - If active:
1054 * - decrease number of active addreses 1054 * - decrease number of active addresses
1055 * - update quotas 1055 * - update quotas
1056 * 1056 *
1057 * @param solver the solver handle 1057 * @param solver the solver handle
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index 45cc508a6..c9f0722d5 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -230,7 +230,7 @@ destroy_channel (struct GNUNET_CADET_Channel *ch)
230 230
231 231
232/** 232/**
233 * Reconnect to the service, retransmit all infomation to try to restore the 233 * Reconnect to the service, retransmit all information to try to restore the
234 * original state. 234 * original state.
235 * 235 *
236 * @param h handle to the cadet 236 * @param h handle to the cadet
@@ -265,8 +265,8 @@ open_port_cb (void *cls, const struct GNUNET_HashCode *id, void *value)
265 265
266 266
267/** 267/**
268 * Reconnect callback: tries to reconnect again after a failer previous 268 * Reconnect callback: tries to reconnect again after a failed previous
269 * reconnecttion 269 * connection
270 * 270 *
271 * @param cls closure (cadet handle) 271 * @param cls closure (cadet handle)
272 */ 272 */
@@ -706,7 +706,7 @@ handle_mq_error (void *cls, enum GNUNET_MQ_Error error)
706 706
707 707
708/** 708/**
709 * Reconnect to the service, retransmit all infomation to try to restore the 709 * Reconnect to the service, retransmit all information to try to restore the
710 * original state. 710 * original state.
711 * 711 *
712 * @param h handle to the cadet 712 * @param h handle to the cadet
@@ -858,7 +858,7 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel)
858 * 858 *
859 * @param channel Channel handle. 859 * @param channel Channel handle.
860 * @param option Query (GNUNET_CADET_OPTION_*). 860 * @param option Query (GNUNET_CADET_OPTION_*).
861 * @param ... dependant on option, currently not used 861 * @param ... dependent on option, currently not used
862 * 862 *
863 * @return Union with an answer to the query. 863 * @return Union with an answer to the query.
864 */ 864 */
@@ -955,7 +955,7 @@ return_agpl (void *cls, const struct GNUNET_MessageHeader *msg)
955 955
956 956
957/** 957/**
958 * Open a port to receive incomming MQ-based channels. 958 * Open a port to receive incoming MQ-based channels.
959 * 959 *
960 * @param h CADET handle. 960 * @param h CADET handle.
961 * @param port Hash identifying the port. 961 * @param port Hash identifying the port.
diff --git a/src/cadet/gnunet-cadet-profiler.c b/src/cadet/gnunet-cadet-profiler.c
index c3a19a399..e61053f94 100644
--- a/src/cadet/gnunet-cadet-profiler.c
+++ b/src/cadet/gnunet-cadet-profiler.c
@@ -250,9 +250,9 @@ static struct GNUNET_SCHEDULER_Task *round_task;
250 * START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES. 250 * START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES.
251 * 251 *
252 * Testcase continues when the root receives confirmation of connected peers, 252 * Testcase continues when the root receives confirmation of connected peers,
253 * on callback funtion ch. 253 * on callback function ch.
254 * 254 *
255 * @param cls Closure (unsued). 255 * @param cls Closure (unused).
256 */ 256 */
257static void 257static void
258start_test (void *cls); 258start_test (void *cls);
@@ -290,7 +290,7 @@ get_index (struct CadetPeer *peer)
290 290
291 291
292/** 292/**
293 * Show the results of the test (banwidth acheived) and log them to GAUGER 293 * Show the results of the test (banwidth achieved) and log them to GAUGER
294 */ 294 */
295static void 295static void
296show_end_data (void) 296show_end_data (void)
@@ -594,7 +594,7 @@ next_rnd (void *cls)
594 * Transmit ping callback. 594 * Transmit ping callback.
595 * 595 *
596 * @param cls Closure (peer for PING, NULL for PONG). 596 * @param cls Closure (peer for PING, NULL for PONG).
597 * @param size Size of the tranmist buffer. 597 * @param size Size of the transmit buffer.
598 * @param buf Pointer to the beginning of the buffer. 598 * @param buf Pointer to the beginning of the buffer.
599 * 599 *
600 * @return Number of bytes written to buf. 600 * @return Number of bytes written to buf.
@@ -911,9 +911,9 @@ select_random_peer (struct CadetPeer *peer)
911 * START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES. 911 * START THE TEST ITSELF, AS WE ARE CONNECTED TO THE CADET SERVICES.
912 * 912 *
913 * Testcase continues when the root receives confirmation of connected peers, 913 * Testcase continues when the root receives confirmation of connected peers,
914 * on callback funtion ch. 914 * on callback function ch.
915 * 915 *
916 * @param cls Closure (unsued). 916 * @param cls Closure (unused).
917 */ 917 */
918static void 918static void
919start_test (void *cls) 919start_test (void *cls)
@@ -993,7 +993,7 @@ warmup (void)
993 * @param op the operation this callback corresponds to 993 * @param op the operation this callback corresponds to
994 * @param pinfo the result; will be NULL if the operation has failed 994 * @param pinfo the result; will be NULL if the operation has failed
995 * @param emsg error message if the operation has failed; 995 * @param emsg error message if the operation has failed;
996 * NULL if the operation is successfull 996 * NULL if the operation is successful
997 */ 997 */
998static void 998static void
999peer_id_cb (void *cls, 999peer_id_cb (void *cls,
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c
index ae5d9210f..9a2180cc1 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -382,7 +382,7 @@ struct CadetChannel
382 int destroy; 382 int destroy;
383 383
384 /** 384 /**
385 * Type of message to be droped. See GCT_send. 385 * Type of message to be dropped. See GCT_send.
386 */ 386 */
387 uint16_t type GNUNET_PACKED; 387 uint16_t type GNUNET_PACKED;
388 388
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c
index 3e1f779ad..637e8663b 100644
--- a/src/cadet/gnunet-service-cadet_connection.c
+++ b/src/cadet/gnunet-service-cadet_connection.c
@@ -424,7 +424,7 @@ GCC_ack_expected (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid)
424 424
425 cc = GCC_lookup (cid); 425 cc = GCC_lookup (cid);
426 if (NULL == cc) 426 if (NULL == cc)
427 return; /* whopise, connection alredy down? */ 427 return; /* whopise, connection already down? */
428 cc->metrics.num_acked_transmissions++; 428 cc->metrics.num_acked_transmissions++;
429} 429}
430 430
@@ -444,7 +444,7 @@ GCC_ack_observed (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid)
444 444
445 cc = GCC_lookup (cid); 445 cc = GCC_lookup (cid);
446 if (NULL == cc) 446 if (NULL == cc)
447 return; /* whopise, connection alredy down? */ 447 return; /* whopise, connection already down? */
448 cc->metrics.num_successes++; 448 cc->metrics.num_successes++;
449} 449}
450 450
@@ -467,7 +467,7 @@ GCC_latency_observed (const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid,
467 467
468 cc = GCC_lookup (cid); 468 cc = GCC_lookup (cid);
469 if (NULL == cc) 469 if (NULL == cc)
470 return; /* whopise, connection alredy down? */ 470 return; /* whopise, connection already down? */
471 GNUNET_STATISTICS_update (stats, "# latencies observed", 1, GNUNET_NO); 471 GNUNET_STATISTICS_update (stats, "# latencies observed", 1, GNUNET_NO);
472 cc->latency_datapoints++; 472 cc->latency_datapoints++;
473 if (cc->latency_datapoints >= 7) 473 if (cc->latency_datapoints >= 7)
diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c
index e1bbeb2c3..6caac474d 100644
--- a/src/cadet/gnunet-service-cadet_dht.c
+++ b/src/cadet/gnunet-service-cadet_dht.c
@@ -102,7 +102,7 @@ static struct GNUNET_TIME_Relative announce_delay;
102 * @param exp when will this value expire 102 * @param exp when will this value expire
103 * @param key key of the result 103 * @param key key of the result
104 * @param get_path path of the get request 104 * @param get_path path of the get request
105 * @param get_path_length lenght of @a get_path 105 * @param get_path_length length of @a get_path
106 * @param put_path path of the put request 106 * @param put_path path of the put request
107 * @param put_path_length length of the @a put_path 107 * @param put_path_length length of the @a put_path
108 * @param type type of the result 108 * @param type type of the result
diff --git a/src/cadet/gnunet-service-cadet_paths.c b/src/cadet/gnunet-service-cadet_paths.c
index 087515a5e..2da4e2708 100644
--- a/src/cadet/gnunet-service-cadet_paths.c
+++ b/src/cadet/gnunet-service-cadet_paths.c
@@ -87,7 +87,7 @@ recalculate_path_desirability (struct CadetPeerPath *path)
87/** 87/**
88 * Return how much we like keeping the path. This is an aggregate 88 * Return how much we like keeping the path. This is an aggregate
89 * score based on various factors, including the age of the path 89 * score based on various factors, including the age of the path
90 * (older == better), and the value of this path to all of its ajacent 90 * (older == better), and the value of this path to all of its adjacent
91 * peers. For example, long paths that end at a peer that we have no 91 * peers. For example, long paths that end at a peer that we have no
92 * shorter way to reach are very desirable, while long paths that end 92 * shorter way to reach are very desirable, while long paths that end
93 * at a peer for which we have a shorter way as well are much less 93 * at a peer for which we have a shorter way as well are much less
@@ -462,7 +462,7 @@ extend_path (struct CadetPeerPath *path,
462 * if applicable. 462 * if applicable.
463 * 463 *
464 * @param get_path path of the get request 464 * @param get_path path of the get request
465 * @param get_path_length lenght of @a get_path 465 * @param get_path_length length of @a get_path
466 * @param put_path path of the put request 466 * @param put_path path of the put request
467 * @param put_path_length length of the @a put_path 467 * @param put_path_length length of the @a put_path
468 * @return a path through the network 468 * @return a path through the network
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c
index 221364c5d..2437a3e1b 100644
--- a/src/cadet/gnunet-service-cadet_peer.c
+++ b/src/cadet/gnunet-service-cadet_peer.c
@@ -304,8 +304,8 @@ GCP_get_desirability_of_path (struct CadetPeer *cp,
304#endif 304#endif
305 avg_sum = off_sum * 1.0 / cp->path_dll_length; 305 avg_sum = off_sum * 1.0 / cp->path_dll_length;
306 path_delta = off - avg_sum; 306 path_delta = off - avg_sum;
307 /* path_delta positiv: path off of peer above average (bad path for peer), 307 /* path_delta positive: path off of peer above average (bad path for peer),
308 path_delta negativ: path off of peer below average (good path for peer) */ 308 path_delta negative: path off of peer below average (good path for peer) */
309 if (path_delta <= -1.0) 309 if (path_delta <= -1.0)
310 weight_alts = -num_alts / path_delta; /* discount alternative paths */ 310 weight_alts = -num_alts / path_delta; /* discount alternative paths */
311 else if (path_delta >= 1.0) 311 else if (path_delta >= 1.0)
@@ -405,7 +405,7 @@ consider_peer_activate (struct CadetPeer *cp)
405 (NULL == cp->core_mq) ? "" : " with CORE link"); 405 (NULL == cp->core_mq) ? "" : " with CORE link");
406 if (NULL != cp->destroy_task) 406 if (NULL != cp->destroy_task)
407 { 407 {
408 /* It's active, do not destory! */ 408 /* It's active, do not destroy! */
409 GNUNET_SCHEDULER_cancel (cp->destroy_task); 409 GNUNET_SCHEDULER_cancel (cp->destroy_task);
410 cp->destroy_task = NULL; 410 cp->destroy_task = NULL;
411 } 411 }
@@ -946,7 +946,7 @@ path_heap_cleanup (void *cls)
946 2 * DESIRED_CONNECTIONS_PER_TUNNEL) 946 2 * DESIRED_CONNECTIONS_PER_TUNNEL)
947 { 947 {
948 /* Now we have way too many, drop least desirable UNLESS it is in use! 948 /* Now we have way too many, drop least desirable UNLESS it is in use!
949 (Note that this intentionally keeps highly desireable, but currently 949 (Note that this intentionally keeps highly desirable, but currently
950 unused paths around in the hope that we might be able to switch, even 950 unused paths around in the hope that we might be able to switch, even
951 if the number of paths exceeds the threshold.) */ 951 if the number of paths exceeds the threshold.) */
952 root = GNUNET_CONTAINER_heap_peek (cp->path_heap); 952 root = GNUNET_CONTAINER_heap_peek (cp->path_heap);
@@ -1056,7 +1056,7 @@ GCP_detach_path (struct CadetPeer *cp,
1056 struct GNUNET_CONTAINER_HeapNode *hn) 1056 struct GNUNET_CONTAINER_HeapNode *hn)
1057{ 1057{
1058 LOG (GNUNET_ERROR_TYPE_DEBUG, 1058 LOG (GNUNET_ERROR_TYPE_DEBUG,
1059 "Detatching path %s from peer %s\n", 1059 "Detaching path %s from peer %s\n",
1060 GCPP_2s (path), 1060 GCPP_2s (path),
1061 GCP_2s (cp)); 1061 GCP_2s (cp));
1062 GNUNET_assert (path == 1062 GNUNET_assert (path ==
@@ -1117,7 +1117,7 @@ GCP_remove_connection (struct CadetPeer *cp,
1117 1117
1118 1118
1119/** 1119/**
1120 * Retrieve the CadetPeer stucture associated with the 1120 * Retrieve the CadetPeer structure associated with the
1121 * peer. Optionally create one and insert it in the appropriate 1121 * peer. Optionally create one and insert it in the appropriate
1122 * structures if the peer is not known yet. 1122 * structures if the peer is not known yet.
1123 * 1123 *
diff --git a/src/cadet/gnunet-service-cadet_tunnels.c b/src/cadet/gnunet-service-cadet_tunnels.c
index c1c511da1..cabbeed0c 100644
--- a/src/cadet/gnunet-service-cadet_tunnels.c
+++ b/src/cadet/gnunet-service-cadet_tunnels.c
@@ -238,7 +238,7 @@ struct CadetTunnelAxolotl
238 int ratchet_allowed; 238 int ratchet_allowed;
239 239
240 /** 240 /**
241 * Number of messages recieved since our last ratchet advance. 241 * Number of messages received since our last ratchet advance.
242 * 242 *
243 * If this counter = 0, we cannot send a new ratchet key in the next 243 * If this counter = 0, we cannot send a new ratchet key in the next
244 * message. 244 * message.
@@ -1108,7 +1108,7 @@ store_skipped_key (struct CadetTunnelAxolotl *ax,
1108 * @param HKr Header key. 1108 * @param HKr Header key.
1109 * @param Np Received meesage number. 1109 * @param Np Received meesage number.
1110 * @return #GNUNET_OK if keys were stored. 1110 * @return #GNUNET_OK if keys were stored.
1111 * #GNUNET_SYSERR if an error ocurred (@a Np not expected). 1111 * #GNUNET_SYSERR if an error occurred (@a Np not expected).
1112 */ 1112 */
1113static int 1113static int
1114store_ax_keys (struct CadetTunnelAxolotl *ax, 1114store_ax_keys (struct CadetTunnelAxolotl *ax,
@@ -3030,7 +3030,7 @@ GCT_send_channel_destroy (struct CadetTunnel *t,
3030 struct GNUNET_CADET_ChannelDestroyMessage msg; 3030 struct GNUNET_CADET_ChannelDestroyMessage msg;
3031 3031
3032 LOG (GNUNET_ERROR_TYPE_DEBUG, 3032 LOG (GNUNET_ERROR_TYPE_DEBUG,
3033 "Sending DESTORY message for channel ID %u\n", 3033 "Sending DESTROY message for channel ID %u\n",
3034 ntohl (ctn.cn)); 3034 ntohl (ctn.cn));
3035 msg.header.size = htons (sizeof(msg)); 3035 msg.header.size = htons (sizeof(msg));
3036 msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY); 3036 msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY);
@@ -3105,7 +3105,7 @@ handle_plaintext_channel_destroy (void *cls,
3105 /* We don't know about such a channel, might have been destroyed on our 3105 /* We don't know about such a channel, might have been destroyed on our
3106 end in the meantime, or never existed. */ 3106 end in the meantime, or never existed. */
3107 LOG (GNUNET_ERROR_TYPE_DEBUG, 3107 LOG (GNUNET_ERROR_TYPE_DEBUG,
3108 "Received channel DESTORY for unknown channel %u. Ignoring.\n", 3108 "Received channel DESTROY for unknown channel %u. Ignoring.\n",
3109 ntohl (cm->ctn.cn)); 3109 ntohl (cm->ctn.cn));
3110 return; 3110 return;
3111 } 3111 }
@@ -3157,7 +3157,7 @@ decrypted_error_cb (void *cls,
3157 3157
3158 3158
3159/** 3159/**
3160 * Create a tunnel to @a destionation. Must only be called 3160 * Create a tunnel to @a destination. Must only be called
3161 * from within #GCP_get_tunnel(). 3161 * from within #GCP_get_tunnel().
3162 * 3162 *
3163 * @param destination where to create the tunnel to 3163 * @param destination where to create the tunnel to
@@ -3220,7 +3220,7 @@ GCT_create_tunnel (struct CadetPeer *destination)
3220 * Add a @a connection to the @a tunnel. 3220 * Add a @a connection to the @a tunnel.
3221 * 3221 *
3222 * @param t a tunnel 3222 * @param t a tunnel
3223 * @param cid connection identifer to use for the connection 3223 * @param cid connection identifier to use for the connection
3224 * @param options options for the connection 3224 * @param options options for the connection
3225 * @param path path to use for the connection 3225 * @param path path to use for the connection
3226 * @return #GNUNET_OK on success, 3226 * @return #GNUNET_OK on success,
diff --git a/src/cadet/test_cadet.c b/src/cadet/test_cadet.c
index 23f2ccbe3..bdf2ac986 100644
--- a/src/cadet/test_cadet.c
+++ b/src/cadet/test_cadet.c
@@ -224,7 +224,7 @@ static struct GNUNET_CADET_Channel *incoming_ch;
224 224
225/** 225/**
226 * Time we started the data transmission (after channel has been established 226 * Time we started the data transmission (after channel has been established
227 * and initilized). 227 * and initialized).
228 */ 228 */
229static struct GNUNET_TIME_Absolute start_time; 229static struct GNUNET_TIME_Absolute start_time;
230 230
@@ -292,7 +292,7 @@ get_target_channel ()
292 292
293 293
294/** 294/**
295 * Show the results of the test (banwidth acheived) and log them to GAUGER 295 * Show the results of the test (banwidth achieved) and log them to GAUGER
296 */ 296 */
297static void 297static void
298show_end_data (void) 298show_end_data (void)
@@ -1311,7 +1311,7 @@ start_test (void *cls)
1311 * @param op the operation this callback corresponds to 1311 * @param op the operation this callback corresponds to
1312 * @param pinfo the result; will be NULL if the operation has failed 1312 * @param pinfo the result; will be NULL if the operation has failed
1313 * @param emsg error message if the operation has failed; 1313 * @param emsg error message if the operation has failed;
1314 * NULL if the operation is successfull 1314 * NULL if the operation is successful
1315 */ 1315 */
1316static void 1316static void
1317pi_cb (void *cls, 1317pi_cb (void *cls,
diff --git a/src/cadet/test_cadet_flow.c b/src/cadet/test_cadet_flow.c
index 2fbdd8d50..9f5a45986 100644
--- a/src/cadet/test_cadet_flow.c
+++ b/src/cadet/test_cadet_flow.c
@@ -176,7 +176,7 @@ static struct GNUNET_CADET_Channel *incoming_ch;
176 176
177/** 177/**
178 * Time we started the data transmission (after channel has been established 178 * Time we started the data transmission (after channel has been established
179 * and initilized). 179 * and initialized).
180 */ 180 */
181static struct GNUNET_TIME_Absolute start_time; 181static struct GNUNET_TIME_Absolute start_time;
182 182
@@ -207,7 +207,7 @@ static unsigned int msg_dropped;
207 207
208 208
209/** 209/**
210 * Show the results of the test (banwidth acheived) and log them to GAUGER 210 * Show the results of the test (banwidth achieved) and log them to GAUGER
211 */ 211 */
212static void 212static void
213show_end_data (void) 213show_end_data (void)
@@ -743,7 +743,7 @@ start_test (void *cls)
743 * @param op the operation this callback corresponds to 743 * @param op the operation this callback corresponds to
744 * @param pinfo the result; will be NULL if the operation has failed 744 * @param pinfo the result; will be NULL if the operation has failed
745 * @param emsg error message if the operation has failed; 745 * @param emsg error message if the operation has failed;
746 * NULL if the operation is successfull 746 * NULL if the operation is successful
747 */ 747 */
748static void 748static void
749pi_cb (void *cls, 749pi_cb (void *cls,
diff --git a/src/consensus/gnunet-consensus-profiler.c b/src/consensus/gnunet-consensus-profiler.c
index 65fc23d8f..07a536a2d 100644
--- a/src/consensus/gnunet-consensus-profiler.c
+++ b/src/consensus/gnunet-consensus-profiler.c
@@ -384,7 +384,7 @@ disconnect_adapter (void *cls, void *op_result)
384 * @param op the operation this callback corresponds to 384 * @param op the operation this callback corresponds to
385 * @param pinfo the result; will be NULL if the operation has failed 385 * @param pinfo the result; will be NULL if the operation has failed
386 * @param emsg error message if the operation has failed; will be NULL if the 386 * @param emsg error message if the operation has failed; will be NULL if the
387 * operation is successfull 387 * operation is successful
388 */ 388 */
389static void 389static void
390peer_info_cb (void *cb_cls, 390peer_info_cb (void *cb_cls,
diff --git a/src/consensus/gnunet-service-consensus.c b/src/consensus/gnunet-service-consensus.c
index 371b7f67f..5b6b9bbd7 100644
--- a/src/consensus/gnunet-service-consensus.c
+++ b/src/consensus/gnunet-service-consensus.c
@@ -357,7 +357,7 @@ struct ReferendumEntry
357 * whether the peer finished the whole referendum. 357 * whether the peer finished the whole referendum.
358 * 358 *
359 * Votes from peers are only counted if they're 359 * Votes from peers are only counted if they're
360 * marked as commited (#GNUNET_YES) in the referendum. 360 * marked as committed (#GNUNET_YES) in the referendum.
361 * 361 *
362 * Otherwise (#GNUNET_NO), the requested changes are 362 * Otherwise (#GNUNET_NO), the requested changes are
363 * not counted for majority votes or thresholds. 363 * not counted for majority votes or thresholds.
@@ -2232,7 +2232,7 @@ task_start_reconcile (struct TaskEntry *task)
2232 if ((task->key.peer1 == session->local_peer_idx) && (task->key.peer2 == 2232 if ((task->key.peer1 == session->local_peer_idx) && (task->key.peer2 ==
2233 session->local_peer_idx)) 2233 session->local_peer_idx))
2234 { 2234 {
2235 /* XXX: mark the corresponding rfn as commited if necessary */ 2235 /* XXX: mark the corresponding rfn as committed if necessary */
2236 finish_task (task); 2236 finish_task (task);
2237 return; 2237 return;
2238 } 2238 }
@@ -2642,7 +2642,7 @@ lookup_task (const struct ConsensusSession *session,
2642 * to accept it, otherwise the request will be refused 2642 * to accept it, otherwise the request will be refused
2643 * Note that we don't use a return value here, as it is also 2643 * Note that we don't use a return value here, as it is also
2644 * necessary to specify the set we want to do the operation with, 2644 * necessary to specify the set we want to do the operation with,
2645 * whith sometimes can be derived from the context message. 2645 * which sometimes can be derived from the context message.
2646 * Also necessary to specify the timeout. 2646 * Also necessary to specify the timeout.
2647 */ 2647 */
2648static void 2648static void
@@ -2705,7 +2705,7 @@ set_listen_cb (void *cls,
2705 2705
2706 if (task->key.peer2 != session->local_peer_idx) 2706 if (task->key.peer2 != session->local_peer_idx)
2707 { 2707 {
2708 /* We're being asked, so we must be thne 2nd peer. */ 2708 /* We're being asked, so we must be the 2nd peer. */
2709 GNUNET_break_op (0); 2709 GNUNET_break_op (0);
2710 return; 2710 return;
2711 } 2711 }
diff --git a/src/conversation/gnunet-conversation-test.c b/src/conversation/gnunet-conversation-test.c
index 9f8e54033..5e6bc805f 100644
--- a/src/conversation/gnunet-conversation-test.c
+++ b/src/conversation/gnunet-conversation-test.c
@@ -143,7 +143,7 @@ switch_to_speaker (void *cls)
143 } 143 }
144 fprintf (stderr, 144 fprintf (stderr,
145 _ ( 145 _ (
146 "\nWe are now playing your recording back. If you can hear it, your audio settings are working...")); 146 "\new are now playing your recording back. If you can hear it, your audio settings are working..."));
147 for (struct Recording *rec = rec_head; NULL != rec; rec = rec->next) 147 for (struct Recording *rec = rec_head; NULL != rec; rec = rec->next)
148 { 148 {
149 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 149 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
diff --git a/src/conversation/gnunet-helper-audio-record.c b/src/conversation/gnunet-helper-audio-record.c
index 633030a64..060a7c779 100644
--- a/src/conversation/gnunet-helper-audio-record.c
+++ b/src/conversation/gnunet-helper-audio-record.c
@@ -60,7 +60,7 @@
60#define FRAME_SIZE (SAMPLING_RATE / 1000 * FRAME_SIZE_MS) 60#define FRAME_SIZE (SAMPLING_RATE / 1000 * FRAME_SIZE_MS)
61 61
62/** 62/**
63 * Pages are commited when their size goes over this value. 63 * Pages are committed when their size goes over this value.
64 * Note that in practice we flush pages VERY often (every frame), 64 * Note that in practice we flush pages VERY often (every frame),
65 * which means that pages NEVER really get to be this big. 65 * which means that pages NEVER really get to be this big.
66 * With one-packet-per-page, pages are roughly 100-300 bytes each. 66 * With one-packet-per-page, pages are roughly 100-300 bytes each.
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 34f8440ae..8f53072d9 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -804,7 +804,7 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
804 being kept if we are just barely below the hard max, 804 being kept if we are just barely below the hard max,
805 and a 99% chance of being kept if we are at the soft max. 805 and a 99% chance of being kept if we are at the soft max.
806 The reason is to make it more likely to drop control traffic 806 The reason is to make it more likely to drop control traffic
807 (ACK, queries) which may be cummulative or highly redundant, 807 (ACK, queries) which may be cumulative or highly redundant,
808 and cheap to drop than data traffic. */qlen = GNUNET_MQ_get_length (c->mq); 808 and cheap to drop than data traffic. */qlen = GNUNET_MQ_get_length (c->mq);
809 if ((qlen >= HARD_MAX_QUEUE) || 809 if ((qlen >= HARD_MAX_QUEUE) ||
810 ((qlen > SOFT_MAX_QUEUE) && 810 ((qlen > SOFT_MAX_QUEUE) &&
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index 6c446fc7c..d40b3bfad 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -886,7 +886,7 @@ GSC_SESSIONS_transmit (struct GSC_ClientActiveRequest *car,
886 sme->deadline = 886 sme->deadline =
887 GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_MAX_CORK_DELAY); 887 GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_MAX_CORK_DELAY);
888 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 888 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
889 "Mesage corked, delaying transmission\n"); 889 "Message corked, delaying transmission\n");
890 } 890 }
891 pos = session->sme_head; 891 pos = session->sme_head;
892 while ((NULL != pos) && (pos->priority >= sme->priority)) 892 while ((NULL != pos) && (pos->priority >= sme->priority))
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c
index bd7a612ed..d658b9c85 100644
--- a/src/datastore/datastore_api.c
+++ b/src/datastore/datastore_api.c
@@ -36,7 +36,7 @@
36#define DELAY_WARN_TIMEOUT GNUNET_TIME_UNIT_MINUTES 36#define DELAY_WARN_TIMEOUT GNUNET_TIME_UNIT_MINUTES
37 37
38/** 38/**
39 * Collect an instane number of statistics? May cause excessive IPC. 39 * Collect an instance number of statistics? May cause excessive IPC.
40 */ 40 */
41#define INSANE_STATISTICS GNUNET_NO 41#define INSANE_STATISTICS GNUNET_NO
42 42
@@ -515,7 +515,7 @@ GNUNET_DATASTORE_disconnect (struct GNUNET_DATASTORE_Handle *h,
515 515
516 516
517/** 517/**
518 * Create a new entry for our priority queue (and possibly discard other entires if 518 * Create a new entry for our priority queue (and possibly discard other entries if
519 * the queue is getting too long). 519 * the queue is getting too long).
520 * 520 *
521 * @param h handle to the datastore 521 * @param h handle to the datastore
diff --git a/src/datastore/plugin_datastore_mysql.c b/src/datastore/plugin_datastore_mysql.c
index 15c2fe386..4f0e0838e 100644
--- a/src/datastore/plugin_datastore_mysql.c
+++ b/src/datastore/plugin_datastore_mysql.c
@@ -74,7 +74,7 @@
74 password=$the_password_you_like 74 password=$the_password_you_like
75 @endverbatim 75 @endverbatim
76 * 76 *
77 * Thats it. Note that .my.cnf file is a security risk unless its on 77 * That's it. Note that .my.cnf file is a security risk unless its on
78 * a safe partition etc. The $HOME/.my.cnf can of course be a symbolic 78 * a safe partition etc. The $HOME/.my.cnf can of course be a symbolic
79 * link. Even greater security risk can be achieved by setting no 79 * link. Even greater security risk can be achieved by setting no
80 * password for $USER. Luckily $USER has only privileges to mess 80 * password for $USER. Luckily $USER has only privileges to mess
diff --git a/src/datastore/plugin_datastore_postgres.c b/src/datastore/plugin_datastore_postgres.c
index 6a5d45832..66929f91a 100644
--- a/src/datastore/plugin_datastore_postgres.c
+++ b/src/datastore/plugin_datastore_postgres.c
@@ -281,7 +281,7 @@ postgres_plugin_put (void *cls,
281 key, 281 key,
282 size, 282 size,
283 GNUNET_SYSERR, 283 GNUNET_SYSERR,
284 _ ("Postgress exec failure")); 284 _ ("Postgresql exec failure"));
285 return; 285 return;
286 } 286 }
287 bool affected = (0 != ret); 287 bool affected = (0 != ret);
@@ -322,7 +322,7 @@ postgres_plugin_put (void *cls,
322 key, 322 key,
323 size, 323 size,
324 GNUNET_SYSERR, 324 GNUNET_SYSERR,
325 "Postgress exec failure"); 325 "Postgresql exec failure");
326 return; 326 return;
327 } 327 }
328 } 328 }
@@ -894,7 +894,7 @@ postgres_plugin_remove_key (void *cls,
894 key, 894 key,
895 size, 895 size,
896 GNUNET_SYSERR, 896 GNUNET_SYSERR,
897 _ ("Postgress exec failure")); 897 _ ("Postgresql exec failure"));
898 return; 898 return;
899 } 899 }
900 if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == ret) 900 if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS == ret)
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index 27eba018f..f4a17e32a 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -530,7 +530,7 @@ handle_dns_request (void *cls,
530 size_t mlen = ntohs (msg->header.size); 530 size_t mlen = ntohs (msg->header.size);
531 size_t dlen = mlen - sizeof(struct GNUNET_MessageHeader); 531 size_t dlen = mlen - sizeof(struct GNUNET_MessageHeader);
532 char buf[dlen] GNUNET_ALIGN; 532 char buf[dlen] GNUNET_ALIGN;
533 struct GNUNET_TUN_DnsHeader *dout; 533 struct GNUNET_TUN_DnsHeader *dns_out;
534 534
535 if (GNUNET_SYSERR == ts->is_dns) 535 if (GNUNET_SYSERR == ts->is_dns)
536 { 536 {
@@ -548,8 +548,8 @@ handle_dns_request (void *cls,
548 GNUNET_memcpy (buf, 548 GNUNET_memcpy (buf,
549 &msg->dns, 549 &msg->dns,
550 dlen); 550 dlen);
551 dout = (struct GNUNET_TUN_DnsHeader *) buf; 551 dns_out = (struct GNUNET_TUN_DnsHeader *) buf;
552 dout->id = ts->specifics.dns.my_id; 552 dns_out->id = ts->specifics.dns.my_id;
553 ts->specifics.dns.rs = GNUNET_DNSSTUB_resolve (dnsstub, 553 ts->specifics.dns.rs = GNUNET_DNSSTUB_resolve (dnsstub,
554 buf, 554 buf,
555 dlen, 555 dlen,
@@ -2301,7 +2301,7 @@ handle_icmp_service (void *cls,
2301 setup_state_record (state); 2301 setup_state_record (state);
2302 2302
2303 /* check that ICMP type is something we want to support, 2303 /* check that ICMP type is something we want to support,
2304 perform ICMP PT if needed ans possibly make up payload */ 2304 perform ICMP PT if needed and possibly make up payload */
2305 switch (msg->af) 2305 switch (msg->af)
2306 { 2306 {
2307 case AF_INET: 2307 case AF_INET:
diff --git a/src/exit/gnunet-helper-exit.c b/src/exit/gnunet-helper-exit.c
index 4a6c66deb..4f32ea1f1 100644
--- a/src/exit/gnunet-helper-exit.c
+++ b/src/exit/gnunet-helper-exit.c
@@ -188,7 +188,7 @@ fork_and_exec (const char *file,
188/** 188/**
189 * Creates a tun-interface called dev; 189 * Creates a tun-interface called dev;
190 * 190 *
191 * @param dev is asumed to point to a char[IFNAMSIZ] 191 * @param dev is assumed to point to a char[IFNAMSIZ]
192 * if *dev == '\\0', uses the name supplied by the kernel; 192 * if *dev == '\\0', uses the name supplied by the kernel;
193 * @return the fd to the tun or -1 on error 193 * @return the fd to the tun or -1 on error
194 */ 194 */
diff --git a/src/fragmentation/defragmentation.c b/src/fragmentation/defragmentation.c
index 92ae9f595..c0ca86b37 100644
--- a/src/fragmentation/defragmentation.c
+++ b/src/fragmentation/defragmentation.c
@@ -114,7 +114,7 @@ struct MessageContext
114 unsigned int frag_times_start_offset; 114 unsigned int frag_times_start_offset;
115 115
116 /** 116 /**
117 * Which offset whould we write the next frag value into 117 * Which offset would we write the next frag value into
118 * in the @e frag_times array? All smaller entries are valid. 118 * in the @e frag_times array? All smaller entries are valid.
119 */ 119 */
120 unsigned int frag_times_write_offset; 120 unsigned int frag_times_write_offset;
diff --git a/src/fragmentation/fragmentation.c b/src/fragmentation/fragmentation.c
index 36e1c33f4..a2e097b8b 100644
--- a/src/fragmentation/fragmentation.c
+++ b/src/fragmentation/fragmentation.c
@@ -461,7 +461,7 @@ GNUNET_FRAGMENT_process_ack (struct GNUNET_FRAGMENT_Context *fc,
461 GNUNET_NO); 461 GNUNET_NO);
462 if (abits != (fc->acks & abits)) 462 if (abits != (fc->acks & abits))
463 { 463 {
464 /* ID collission or message reordering, count! This should be rare! */ 464 /* ID collision or message reordering, count! This should be rare! */
465 GNUNET_STATISTICS_update (fc->stats, 465 GNUNET_STATISTICS_update (fc->stats,
466 _ ("# bits removed from fragmentation ACKs"), 1, 466 _ ("# bits removed from fragmentation ACKs"), 1,
467 GNUNET_NO); 467 GNUNET_NO);
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index 920786146..63b17a93e 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -584,7 +584,7 @@ GNUNET_FS_data_reader_copy_ (void *cls,
584 * 584 *
585 * @param h master context 585 * @param h master context
586 * @param ext component of the path 586 * @param ext component of the path
587 * @param ent entity identifier (or emtpy string for the directory) 587 * @param ent entity identifier (or empty string for the directory)
588 * @return NULL on error 588 * @return NULL on error
589 */ 589 */
590static char * 590static char *
@@ -624,7 +624,7 @@ get_serialization_file_name (struct GNUNET_FS_Handle *h,
624 * @param h master context 624 * @param h master context
625 * @param ext component of the path 625 * @param ext component of the path
626 * @param uni name of the parent operation 626 * @param uni name of the parent operation
627 * @param ent entity identifier (or emtpy string for the directory) 627 * @param ent entity identifier (or empty string for the directory)
628 * @return NULL on error 628 * @return NULL on error
629 */ 629 */
630static char * 630static char *
@@ -664,7 +664,7 @@ get_serialization_file_name_in_dir (struct GNUNET_FS_Handle *h,
664 * 664 *
665 * @param h master context 665 * @param h master context
666 * @param ext component of the path 666 * @param ext component of the path
667 * @param ent entity identifier (or emtpy string for the directory) 667 * @param ent entity identifier (or empty string for the directory)
668 * @return NULL on error 668 * @return NULL on error
669 */ 669 */
670static struct GNUNET_BIO_ReadHandle * 670static struct GNUNET_BIO_ReadHandle *
@@ -687,7 +687,7 @@ get_read_handle (struct GNUNET_FS_Handle *h, const char *ext, const char *ent)
687 * 687 *
688 * @param h master context 688 * @param h master context
689 * @param ext component of the path 689 * @param ext component of the path
690 * @param ent entity identifier (or emtpy string for the directory) 690 * @param ent entity identifier (or empty string for the directory)
691 * @return NULL on error 691 * @return NULL on error
692 */ 692 */
693static struct GNUNET_BIO_WriteHandle * 693static struct GNUNET_BIO_WriteHandle *
@@ -712,7 +712,7 @@ get_write_handle (struct GNUNET_FS_Handle *h, const char *ext, const char *ent)
712 * @param h master context 712 * @param h master context
713 * @param ext component of the path 713 * @param ext component of the path
714 * @param uni name of parent 714 * @param uni name of parent
715 * @param ent entity identifier (or emtpy string for the directory) 715 * @param ent entity identifier (or empty string for the directory)
716 * @return NULL on error 716 * @return NULL on error
717 */ 717 */
718static struct GNUNET_BIO_WriteHandle * 718static struct GNUNET_BIO_WriteHandle *
@@ -877,7 +877,7 @@ read_start_time (struct GNUNET_BIO_ReadHandle *rh,
877 * 877 *
878 * @param h master context 878 * @param h master context
879 * @param filename name of the file (without directory) with 879 * @param filename name of the file (without directory) with
880 * the infromation 880 * the information
881 * @return NULL on error 881 * @return NULL on error
882 */ 882 */
883static struct GNUNET_FS_FileInformation * 883static struct GNUNET_FS_FileInformation *
@@ -890,7 +890,7 @@ deserialize_file_information (struct GNUNET_FS_Handle *h, const char *filename);
890 * 890 *
891 * @param h master context 891 * @param h master context
892 * @param fn name of the file (without directory) with 892 * @param fn name of the file (without directory) with
893 * the infromation 893 * the information
894 * @param rh handle for reading 894 * @param rh handle for reading
895 * @return NULL on error 895 * @return NULL on error
896 */ 896 */
@@ -1152,7 +1152,7 @@ cleanup:
1152 * 1152 *
1153 * @param h master context 1153 * @param h master context
1154 * @param filename name of the file (without directory) with 1154 * @param filename name of the file (without directory) with
1155 * the infromation 1155 * the information
1156 * @return NULL on error 1156 * @return NULL on error
1157 */ 1157 */
1158static struct GNUNET_FS_FileInformation * 1158static struct GNUNET_FS_FileInformation *
@@ -1230,7 +1230,7 @@ get_serialization_short_name (const char *fullname)
1230 * 1230 *
1231 * @param h master context 1231 * @param h master context
1232 * @param ext component of the path 1232 * @param ext component of the path
1233 * @return NULL on errror 1233 * @return NULL on error
1234 */ 1234 */
1235static char * 1235static char *
1236make_serialization_file_name (struct GNUNET_FS_Handle *h, const char *ext) 1236make_serialization_file_name (struct GNUNET_FS_Handle *h, const char *ext)
@@ -1266,7 +1266,7 @@ make_serialization_file_name (struct GNUNET_FS_Handle *h, const char *ext)
1266 * @param h master context 1266 * @param h master context
1267 * @param ext component of the path 1267 * @param ext component of the path
1268 * @param uni name of parent 1268 * @param uni name of parent
1269 * @return NULL on errror 1269 * @return NULL on error
1270 */ 1270 */
1271static char * 1271static char *
1272make_serialization_file_name_in_dir (struct GNUNET_FS_Handle *h, 1272make_serialization_file_name_in_dir (struct GNUNET_FS_Handle *h,
@@ -2535,7 +2535,7 @@ static int
2535deserialize_search_result (void *cls, const char *filename) 2535deserialize_search_result (void *cls, const char *filename)
2536{ 2536{
2537 struct GNUNET_FS_SearchContext *sc = cls; 2537 struct GNUNET_FS_SearchContext *sc = cls;
2538 char *ser; 2538 char *serialized;
2539 char *uris; 2539 char *uris;
2540 char *emsg; 2540 char *emsg;
2541 char *download; 2541 char *download;
@@ -2544,19 +2544,19 @@ deserialize_search_result (void *cls, const char *filename)
2544 struct GNUNET_BIO_ReadHandle *drh; 2544 struct GNUNET_BIO_ReadHandle *drh;
2545 struct GNUNET_FS_SearchResult *sr; 2545 struct GNUNET_FS_SearchResult *sr;
2546 2546
2547 ser = get_serialization_short_name (filename); 2547 serialized = get_serialization_short_name (filename);
2548 rh = GNUNET_BIO_read_open_file (filename); 2548 rh = GNUNET_BIO_read_open_file (filename);
2549 if (NULL == rh) 2549 if (NULL == rh)
2550 { 2550 {
2551 if (NULL != ser) 2551 if (NULL != serialized)
2552 { 2552 {
2553 remove_sync_file_in_dir (sc->h, 2553 remove_sync_file_in_dir (sc->h,
2554 (NULL == sc->psearch_result) 2554 (NULL == sc->psearch_result)
2555 ? GNUNET_FS_SYNC_PATH_MASTER_SEARCH 2555 ? GNUNET_FS_SYNC_PATH_MASTER_SEARCH
2556 : GNUNET_FS_SYNC_PATH_CHILD_SEARCH, 2556 : GNUNET_FS_SYNC_PATH_CHILD_SEARCH,
2557 sc->serialization, 2557 sc->serialization,
2558 ser); 2558 serialized);
2559 GNUNET_free (ser); 2559 GNUNET_free (serialized);
2560 } 2560 }
2561 return GNUNET_OK; 2561 return GNUNET_OK;
2562 } 2562 }
@@ -2567,7 +2567,7 @@ deserialize_search_result (void *cls, const char *filename)
2567 sr = GNUNET_new (struct GNUNET_FS_SearchResult); 2567 sr = GNUNET_new (struct GNUNET_FS_SearchResult);
2568 sr->h = sc->h; 2568 sr->h = sc->h;
2569 sr->sc = sc; 2569 sr->sc = sc;
2570 sr->serialization = ser; 2570 sr->serialization = serialized;
2571 if ((GNUNET_OK != 2571 if ((GNUNET_OK !=
2572 GNUNET_BIO_read_string (rh, "result-uri", &uris, 10 * 1024)) || 2572 GNUNET_BIO_read_string (rh, "result-uri", &uris, 10 * 1024)) ||
2573 (NULL == (sr->uri = GNUNET_FS_uri_parse (uris, &emsg))) || 2573 (NULL == (sr->uri = GNUNET_FS_uri_parse (uris, &emsg))) ||
@@ -2850,32 +2850,32 @@ static int
2850deserialize_subdownload (void *cls, const char *filename) 2850deserialize_subdownload (void *cls, const char *filename)
2851{ 2851{
2852 struct GNUNET_FS_DownloadContext *parent = cls; 2852 struct GNUNET_FS_DownloadContext *parent = cls;
2853 char *ser; 2853 char *serialized;
2854 char *emsg; 2854 char *emsg;
2855 struct GNUNET_BIO_ReadHandle *rh; 2855 struct GNUNET_BIO_ReadHandle *rh;
2856 2856
2857 ser = get_serialization_short_name (filename); 2857 serialized = get_serialization_short_name (filename);
2858 rh = GNUNET_BIO_read_open_file (filename); 2858 rh = GNUNET_BIO_read_open_file (filename);
2859 if (NULL == rh) 2859 if (NULL == rh)
2860 { 2860 {
2861 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 2861 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
2862 _ ( 2862 _ (
2863 "Failed to resume sub-download `%s': could not open file `%s'\n"), 2863 "Failed to resume sub-download `%s': could not open file `%s'\n"),
2864 ser, 2864 serialized,
2865 filename); 2865 filename);
2866 GNUNET_free (ser); 2866 GNUNET_free (serialized);
2867 return GNUNET_OK; 2867 return GNUNET_OK;
2868 } 2868 }
2869 deserialize_download (parent->h, rh, parent, NULL, ser); 2869 deserialize_download (parent->h, rh, parent, NULL, serialized);
2870 if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg)) 2870 if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg))
2871 { 2871 {
2872 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 2872 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
2873 _ ("Failed to resume sub-download `%s': %s\n"), 2873 _ ("Failed to resume sub-download `%s': %s\n"),
2874 ser, 2874 serialized,
2875 emsg); 2875 emsg);
2876 GNUNET_free (emsg); 2876 GNUNET_free (emsg);
2877 } 2877 }
2878 GNUNET_free (ser); 2878 GNUNET_free (serialized);
2879 return GNUNET_OK; 2879 return GNUNET_OK;
2880} 2880}
2881 2881
@@ -3146,7 +3146,7 @@ static int
3146deserialize_search_file (void *cls, const char *filename) 3146deserialize_search_file (void *cls, const char *filename)
3147{ 3147{
3148 struct GNUNET_FS_Handle *h = cls; 3148 struct GNUNET_FS_Handle *h = cls;
3149 char *ser; 3149 char *set;
3150 char *emsg; 3150 char *emsg;
3151 struct GNUNET_BIO_ReadHandle *rh; 3151 struct GNUNET_BIO_ReadHandle *rh;
3152 struct GNUNET_FS_SearchContext *sc; 3152 struct GNUNET_FS_SearchContext *sc;
@@ -3159,21 +3159,21 @@ deserialize_search_file (void *cls, const char *filename)
3159 } 3159 }
3160 if (S_ISDIR (buf.st_mode)) 3160 if (S_ISDIR (buf.st_mode))
3161 return GNUNET_OK; /* skip directories */ 3161 return GNUNET_OK; /* skip directories */
3162 ser = get_serialization_short_name (filename); 3162 set = get_serialization_short_name (filename);
3163 rh = GNUNET_BIO_read_open_file (filename); 3163 rh = GNUNET_BIO_read_open_file (filename);
3164 if (NULL == rh) 3164 if (NULL == rh)
3165 { 3165 {
3166 if (NULL != ser) 3166 if (NULL != set)
3167 { 3167 {
3168 GNUNET_FS_remove_sync_file_ (h, GNUNET_FS_SYNC_PATH_MASTER_SEARCH, ser); 3168 GNUNET_FS_remove_sync_file_ (h, GNUNET_FS_SYNC_PATH_MASTER_SEARCH, set);
3169 GNUNET_free (ser); 3169 GNUNET_free (set);
3170 } 3170 }
3171 return GNUNET_OK; 3171 return GNUNET_OK;
3172 } 3172 }
3173 sc = deserialize_search (h, rh, NULL, ser); 3173 sc = deserialize_search (h, rh, NULL, set);
3174 if (NULL != sc) 3174 if (NULL != sc)
3175 sc->top = GNUNET_FS_make_top (h, &GNUNET_FS_search_signal_suspend_, sc); 3175 sc->top = GNUNET_FS_make_top (h, &GNUNET_FS_search_signal_suspend_, sc);
3176 GNUNET_free (ser); 3176 GNUNET_free (set);
3177 if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg)) 3177 if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg))
3178 { 3178 {
3179 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 3179 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -3198,21 +3198,21 @@ static int
3198deserialize_download_file (void *cls, const char *filename) 3198deserialize_download_file (void *cls, const char *filename)
3199{ 3199{
3200 struct GNUNET_FS_Handle *h = cls; 3200 struct GNUNET_FS_Handle *h = cls;
3201 char *ser; 3201 char *set;
3202 char *emsg; 3202 char *emsg;
3203 struct GNUNET_BIO_ReadHandle *rh; 3203 struct GNUNET_BIO_ReadHandle *rh;
3204 3204
3205 ser = get_serialization_short_name (filename); 3205 set = get_serialization_short_name (filename);
3206 rh = GNUNET_BIO_read_open_file (filename); 3206 rh = GNUNET_BIO_read_open_file (filename);
3207 if (NULL == rh) 3207 if (NULL == rh)
3208 { 3208 {
3209 if (0 != unlink (filename)) 3209 if (0 != unlink (filename))
3210 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename); 3210 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "unlink", filename);
3211 GNUNET_free (ser); 3211 GNUNET_free (set);
3212 return GNUNET_OK; 3212 return GNUNET_OK;
3213 } 3213 }
3214 deserialize_download (h, rh, NULL, NULL, ser); 3214 deserialize_download (h, rh, NULL, NULL, set);
3215 GNUNET_free (ser); 3215 GNUNET_free (set);
3216 if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg)) 3216 if (GNUNET_OK != GNUNET_BIO_read_close (rh, &emsg))
3217 { 3217 {
3218 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 3218 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -3226,7 +3226,7 @@ deserialize_download_file (void *cls, const char *filename)
3226 3226
3227 3227
3228/** 3228/**
3229 * Deserialize informatin about pending operations. 3229 * Deserialize information about pending operations.
3230 * 3230 *
3231 * @param master_path which master directory should be scanned 3231 * @param master_path which master directory should be scanned
3232 * @param proc function to call for each entry (will get @a h for 'cls') 3232 * @param proc function to call for each entry (will get @a h for 'cls')
diff --git a/src/fs/fs_directory.c b/src/fs/fs_directory.c
index 9f0f12611..eb7aac5bb 100644
--- a/src/fs/fs_directory.c
+++ b/src/fs/fs_directory.c
@@ -350,7 +350,7 @@ struct GNUNET_FS_DirectoryBuilder
350 struct BuilderEntry *head; 350 struct BuilderEntry *head;
351 351
352 /** 352 /**
353 * Number of entires in the directory. 353 * Number of entries in the directory.
354 */ 354 */
355 unsigned int count; 355 unsigned int count;
356}; 356};
@@ -401,7 +401,7 @@ GNUNET_FS_directory_builder_add (struct GNUNET_FS_DirectoryBuilder *bld,
401 size_t mds; 401 size_t mds;
402 size_t mdxs; 402 size_t mdxs;
403 char *uris; 403 char *uris;
404 char *ser; 404 char *serialized;
405 char *sptr; 405 char *sptr;
406 size_t slen; 406 size_t slen;
407 struct GNUNET_CONTAINER_MetaData *meta; 407 struct GNUNET_CONTAINER_MetaData *meta;
@@ -456,10 +456,10 @@ GNUNET_FS_directory_builder_add (struct GNUNET_FS_DirectoryBuilder *bld,
456 mds = GNUNET_MAX_MALLOC_CHECKED / 2; 456 mds = GNUNET_MAX_MALLOC_CHECKED / 2;
457 e = GNUNET_malloc (sizeof(struct BuilderEntry) + slen + mds 457 e = GNUNET_malloc (sizeof(struct BuilderEntry) + slen + mds
458 + sizeof(uint32_t)); 458 + sizeof(uint32_t));
459 ser = (char *) &e[1]; 459 serialized = (char *) &e[1];
460 GNUNET_memcpy (ser, uris, slen); 460 GNUNET_memcpy (serialized, uris, slen);
461 GNUNET_free (uris); 461 GNUNET_free (uris);
462 sptr = &ser[slen + sizeof(uint32_t)]; 462 sptr = &serialized[slen + sizeof(uint32_t)];
463 ret = 463 ret =
464 GNUNET_CONTAINER_meta_data_serialize (meta_use, &sptr, mds, 464 GNUNET_CONTAINER_meta_data_serialize (meta_use, &sptr, mds,
465 GNUNET_CONTAINER_META_DATA_SERIALIZE_PART); 465 GNUNET_CONTAINER_META_DATA_SERIALIZE_PART);
@@ -470,7 +470,7 @@ GNUNET_FS_directory_builder_add (struct GNUNET_FS_DirectoryBuilder *bld,
470 else 470 else
471 mds = ret; 471 mds = ret;
472 big = htonl (mds); 472 big = htonl (mds);
473 GNUNET_memcpy (&ser[slen], &big, sizeof(uint32_t)); 473 GNUNET_memcpy (&serialized[slen], &big, sizeof(uint32_t));
474 e->len = slen + sizeof(uint32_t) + mds; 474 e->len = slen + sizeof(uint32_t) + mds;
475 e->next = bld->head; 475 e->next = bld->head;
476 bld->head = e; 476 bld->head = e;
@@ -496,7 +496,7 @@ do_align (size_t start_position, size_t end_position)
496 496
497 497
498/** 498/**
499 * Compute a permuation of the blocks to 499 * Compute a permutation of the blocks to
500 * minimize the cost of alignment. Greedy packer. 500 * minimize the cost of alignment. Greedy packer.
501 * 501 *
502 * @param start starting position for the first block 502 * @param start starting position for the first block
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index 1f8ce7c05..5c98d224a 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -343,7 +343,7 @@ full_recursive_download (struct GNUNET_FS_DownloadContext *dc)
343 GNUNET_log ( 343 GNUNET_log (
344 GNUNET_ERROR_TYPE_WARNING, 344 GNUNET_ERROR_TYPE_WARNING,
345 _ ( 345 _ (
346 "Failed to access full directroy contents of `%s' for recursive download\n"), 346 "Failed to access full directory contents of `%s' for recursive download\n"),
347 dc->filename); 347 dc->filename);
348 } 348 }
349 GNUNET_DISK_file_unmap (m); 349 GNUNET_DISK_file_unmap (m);
@@ -1431,7 +1431,7 @@ try_reconnect (struct GNUNET_FS_DownloadContext *dc)
1431 * We're allowed to ask the FS service for our blocks. Start the download. 1431 * We're allowed to ask the FS service for our blocks. Start the download.
1432 * 1432 *
1433 * @param cls the 'struct GNUNET_FS_DownloadContext' 1433 * @param cls the 'struct GNUNET_FS_DownloadContext'
1434 * @param mq handle to use for communcation with FS (we must destroy it!) 1434 * @param mq handle to use for communication with FS (we must destroy it!)
1435 */ 1435 */
1436static void 1436static void
1437activate_fs_download (void *cls) 1437activate_fs_download (void *cls)
diff --git a/src/fs/fs_publish.c b/src/fs/fs_publish.c
index fddc65d67..f891f37a1 100644
--- a/src/fs/fs_publish.c
+++ b/src/fs/fs_publish.c
@@ -1431,7 +1431,7 @@ compute_contents_size (struct GNUNET_FS_FileInformation *fi)
1431 * @param h handle to the file sharing subsystem 1431 * @param h handle to the file sharing subsystem
1432 * @param fi information about the file or directory structure to publish 1432 * @param fi information about the file or directory structure to publish
1433 * @param ns namespace to publish the file in, NULL for no namespace 1433 * @param ns namespace to publish the file in, NULL for no namespace
1434 * @param nid identifier to use for the publishd content in the namespace 1434 * @param nid identifier to use for the published content in the namespace
1435 * (can be NULL, must be NULL if namespace is NULL) 1435 * (can be NULL, must be NULL if namespace is NULL)
1436 * @param nuid update-identifier that will be used for future updates 1436 * @param nuid update-identifier that will be used for future updates
1437 * (can be NULL, must be NULL if namespace or nid is NULL) 1437 * (can be NULL, must be NULL if namespace or nid is NULL)
@@ -1560,7 +1560,7 @@ fip_signal_stop (void *cls,
1560 1560
1561/** 1561/**
1562 * Stop an upload. Will abort incomplete uploads (but 1562 * Stop an upload. Will abort incomplete uploads (but
1563 * not remove blocks that have already been publishd) or 1563 * not remove blocks that have already been published) or
1564 * simply clean up the state for completed uploads. 1564 * simply clean up the state for completed uploads.
1565 * Must NOT be called from within the event callback! 1565 * Must NOT be called from within the event callback!
1566 * 1566 *
diff --git a/src/fs/fs_sharetree.c b/src/fs/fs_sharetree.c
index d5e75f9be..3610b202e 100644
--- a/src/fs/fs_sharetree.c
+++ b/src/fs/fs_sharetree.c
@@ -32,7 +32,7 @@
32 32
33/** 33/**
34 * Entry for each unique keyword to track how often 34 * Entry for each unique keyword to track how often
35 * it occured. Contains the keyword and the counter. 35 * it occurred. Contains the keyword and the counter.
36 */ 36 */
37struct KeywordCounter 37struct KeywordCounter
38{ 38{
diff --git a/src/fs/fs_tree.c b/src/fs/fs_tree.c
index 6203690d2..4d49809f8 100644
--- a/src/fs/fs_tree.c
+++ b/src/fs/fs_tree.c
@@ -434,7 +434,7 @@ GNUNET_FS_tree_encoder_get_uri (struct GNUNET_FS_TreeEncoder *te)
434 * about possible errors. 434 * about possible errors.
435 * 435 *
436 * @param te the tree encoder to clean up 436 * @param te the tree encoder to clean up
437 * @param emsg set to an error message (if an error occured 437 * @param emsg set to an error message (if an error occurred
438 * within the tree encoder; if this function is called 438 * within the tree encoder; if this function is called
439 * prior to completion and prior to an internal error, 439 * prior to completion and prior to an internal error,
440 * both "*emsg" will be set to NULL). 440 * both "*emsg" will be set to NULL).
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c
index 4d1b7c6f0..73ea5d60d 100644
--- a/src/fs/fs_uri.c
+++ b/src/fs/fs_uri.c
@@ -25,7 +25,7 @@
25 * 25 *
26 * GNUnet URIs are of the general form "gnunet://MODULE/IDENTIFIER". 26 * GNUnet URIs are of the general form "gnunet://MODULE/IDENTIFIER".
27 * The specific structure of "IDENTIFIER" depends on the module and 27 * The specific structure of "IDENTIFIER" depends on the module and
28 * maybe differenciated into additional subcategories if applicable. 28 * maybe differentiated into additional subcategories if applicable.
29 * This module only deals with fs identifiers (MODULE = "fs"). 29 * This module only deals with fs identifiers (MODULE = "fs").
30 * <p> 30 * <p>
31 * 31 *
@@ -213,7 +213,7 @@ GNUNET_FS_uri_ksk_to_string_fancy (const struct GNUNET_FS_Uri *uri)
213 * 213 *
214 * @param in string with %-encoding 214 * @param in string with %-encoding
215 * @param emsg where to store the parser error message (if any) 215 * @param emsg where to store the parser error message (if any)
216 * @return decodded string with leading space (or preserved plus) 216 * @return decoded string with leading space (or preserved plus)
217 */ 217 */
218static char * 218static char *
219percent_decode_keyword (const char *in, char **emsg) 219percent_decode_keyword (const char *in, char **emsg)
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c
index dea467669..c62edcd61 100644
--- a/src/fs/gnunet-publish.c
+++ b/src/fs/gnunet-publish.c
@@ -508,7 +508,7 @@ uri_ksk_continuation (void *cls,
508 * Iterate over the results from the directory scan and extract 508 * Iterate over the results from the directory scan and extract
509 * the desired information for the publishing operation. 509 * the desired information for the publishing operation.
510 * 510 *
511 * @param item root with the data from the directroy scan 511 * @param item root with the data from the directory scan
512 * @return handle with the information for the publishing operation 512 * @return handle with the information for the publishing operation
513 */ 513 */
514static struct GNUNET_FS_FileInformation * 514static struct GNUNET_FS_FileInformation *
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index cf9069918..e90ba4c8b 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -63,7 +63,7 @@
63 GNUNET_TIME_UNIT_SECONDS, 5) 63 GNUNET_TIME_UNIT_SECONDS, 5)
64 64
65/** 65/**
66 * Collect an instane number of statistics? May cause excessive IPC. 66 * Collect an instance number of statistics? May cause excessive IPC.
67 */ 67 */
68#define INSANE_STATISTICS GNUNET_NO 68#define INSANE_STATISTICS GNUNET_NO
69 69
diff --git a/src/fs/gnunet-service-fs_cadet_client.c b/src/fs/gnunet-service-fs_cadet_client.c
index 96ccf8232..398fcd604 100644
--- a/src/fs/gnunet-service-fs_cadet_client.c
+++ b/src/fs/gnunet-service-fs_cadet_client.c
@@ -655,7 +655,7 @@ GSF_cadet_query (const struct GNUNET_PeerIdentity *target,
655 655
656/** 656/**
657 * Cancel an active request; must not be called after 'proc' 657 * Cancel an active request; must not be called after 'proc'
658 * was calld. 658 * was called.
659 * 659 *
660 * @param sr request to cancel 660 * @param sr request to cancel
661 */ 661 */
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index dca8ae2a8..c174ad611 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -53,7 +53,7 @@
53 2) 53 2)
54 54
55/** 55/**
56 * Collect an instane number of statistics? May cause excessive IPC. 56 * Collect an instance number of statistics? May cause excessive IPC.
57 */ 57 */
58#define INSANE_STATISTICS GNUNET_NO 58#define INSANE_STATISTICS GNUNET_NO
59 59
diff --git a/src/fs/gnunet-service-fs_pe.c b/src/fs/gnunet-service-fs_pe.c
index bb4b07c02..60dd0ab70 100644
--- a/src/fs/gnunet-service-fs_pe.c
+++ b/src/fs/gnunet-service-fs_pe.c
@@ -30,7 +30,7 @@
30#include "gnunet-service-fs_pr.h" 30#include "gnunet-service-fs_pr.h"
31 31
32/** 32/**
33 * Collect an instane number of statistics? May cause excessive IPC. 33 * Collect an instance number of statistics? May cause excessive IPC.
34 */ 34 */
35#define INSANE_STATISTICS GNUNET_NO 35#define INSANE_STATISTICS GNUNET_NO
36 36
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c
index 150dd72e2..a5db4b6b7 100644
--- a/src/fs/gnunet-service-fs_pr.c
+++ b/src/fs/gnunet-service-fs_pr.c
@@ -49,7 +49,7 @@
49/** 49/**
50 * Bandwidth value of a 0-priority content (must be fairly high 50 * Bandwidth value of a 0-priority content (must be fairly high
51 * compared to query since content is typically significantly larger 51 * compared to query since content is typically significantly larger
52 * -- and more valueable since it can take many queries to get one 52 * -- and more valuable since it can take many queries to get one
53 * piece of content). 53 * piece of content).
54 */ 54 */
55#define CONTENT_BANDWIDTH_VALUE 800 55#define CONTENT_BANDWIDTH_VALUE 800
@@ -60,7 +60,7 @@
60#define MAX_RESULTS (100 * 1024) 60#define MAX_RESULTS (100 * 1024)
61 61
62/** 62/**
63 * Collect an instane number of statistics? May cause excessive IPC. 63 * Collect an instance number of statistics? May cause excessive IPC.
64 */ 64 */
65#define INSANE_STATISTICS GNUNET_NO 65#define INSANE_STATISTICS GNUNET_NO
66 66
@@ -241,7 +241,7 @@ static unsigned long long max_pending_requests = (32 * 1024);
241 * will create a new bloom filter from scratch, so it should only be 241 * will create a new bloom filter from scratch, so it should only be
242 * called if we have no bloomfilter at all (and hence can create a 242 * called if we have no bloomfilter at all (and hence can create a
243 * fresh one of minimal size without problems) OR if our peer is the 243 * fresh one of minimal size without problems) OR if our peer is the
244 * initiator (in which case we may resize to larger than mimimum size). 244 * initiator (in which case we may resize to larger than minimum size).
245 * 245 *
246 * @param type type of the request 246 * @param type type of the request
247 * @param pr request for which the BF is to be recomputed 247 * @param pr request for which the BF is to be recomputed
@@ -287,7 +287,7 @@ refresh_bloomfilter (enum GNUNET_BLOCK_Type type, struct GSF_PendingRequest *pr)
287 * @param bf_size number of bytes in @a bf_data 287 * @param bf_size number of bytes in @a bf_data
288 * @param mingle mingle value for bf 288 * @param mingle mingle value for bf
289 * @param anonymity_level desired anonymity level 289 * @param anonymity_level desired anonymity level
290 * @param priority maximum outgoing cummulative request priority to use 290 * @param priority maximum outgoing cumulative request priority to use
291 * @param ttl current time-to-live for the request 291 * @param ttl current time-to-live for the request
292 * @param sender_pid peer ID to use for the sender when forwarding, 0 for none 292 * @param sender_pid peer ID to use for the sender when forwarding, 0 for none
293 * @param origin_pid peer ID of origin of query (do not loop back) 293 * @param origin_pid peer ID of origin of query (do not loop back)
diff --git a/src/fs/gnunet-service-fs_put.c b/src/fs/gnunet-service-fs_put.c
index ddc15820a..93333b7a2 100644
--- a/src/fs/gnunet-service-fs_put.c
+++ b/src/fs/gnunet-service-fs_put.c
@@ -66,7 +66,7 @@ struct PutOperator
66 struct GNUNET_SCHEDULER_Task *dht_task; 66 struct GNUNET_SCHEDULER_Task *dht_task;
67 67
68 /** 68 /**
69 * How many entires with zero anonymity of our type do we currently 69 * How many entries with zero anonymity of our type do we currently
70 * estimate to have in the database? 70 * estimate to have in the database?
71 */ 71 */
72 uint64_t zero_anonymity_count_estimate; 72 uint64_t zero_anonymity_count_estimate;
diff --git a/src/fs/test_fs_directory.c b/src/fs/test_fs_directory.c
index 1b109c4d4..908e7c555 100644
--- a/src/fs/test_fs_directory.c
+++ b/src/fs/test_fs_directory.c
@@ -139,7 +139,7 @@ testDirectory (unsigned int i)
139 (start), 139 (start),
140 GNUNET_YES); 140 GNUNET_YES);
141 fprintf (stdout, 141 fprintf (stdout,
142 "Creating directory with %u entires and total size %llu took %s\n", 142 "Creating directory with %u entries and total size %llu took %s\n",
143 i, (unsigned long long) dlen, s); 143 i, (unsigned long long) dlen, s);
144 if (i < 100) 144 if (i < 100)
145 { 145 {
diff --git a/src/fs/test_fs_file_information.c b/src/fs/test_fs_file_information.c
index 9d0978e06..22013db27 100644
--- a/src/fs/test_fs_file_information.c
+++ b/src/fs/test_fs_file_information.c
@@ -24,7 +24,7 @@
24 * @author Christian Grothoff 24 * @author Christian Grothoff
25 * 25 *
26 * TODO: 26 * TODO:
27 * - test that metatdata, etc. are all correct (for example, 27 * - test that metadata, etc. are all correct (for example,
28 * there is a known bug with dirname never being set that is 28 * there is a known bug with dirname never being set that is
29 * not detected!) 29 * not detected!)
30 * - need to iterate over file-information structure 30 * - need to iterate over file-information structure
diff --git a/src/hello/hello.c b/src/hello/hello.c
index fa859a772..12b576ceb 100644
--- a/src/hello/hello.c
+++ b/src/hello/hello.c
@@ -709,7 +709,7 @@ struct EqualsContext
709{ 709{
710 /** 710 /**
711 * Addresses that expired before this date are ignored for 711 * Addresses that expired before this date are ignored for
712 * the comparisson. 712 * the comparison.
713 */ 713 */
714 struct GNUNET_TIME_Absolute expiration_limit; 714 struct GNUNET_TIME_Absolute expiration_limit;
715 715
@@ -905,7 +905,7 @@ GNUNET_HELLO_get_last_expiration (const struct GNUNET_HELLO_Message *msg)
905/** 905/**
906 * GNUnet URIs are of the general form "gnunet://MODULE/IDENTIFIER". 906 * GNUnet URIs are of the general form "gnunet://MODULE/IDENTIFIER".
907 * The specific structure of "IDENTIFIER" depends on the module and 907 * The specific structure of "IDENTIFIER" depends on the module and
908 * maybe differenciated into additional subcategories if applicable. 908 * maybe differentiated into additional subcategories if applicable.
909 * This module only deals with hello identifiers (MODULE = "hello"). 909 * This module only deals with hello identifiers (MODULE = "hello").
910 * <p> 910 * <p>
911 * 911 *
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
diff --git a/src/include/gnunet_nt_lib.h b/src/include/gnunet_nt_lib.h
index 068c56302..18419a7b8 100644
--- a/src/include/gnunet_nt_lib.h
+++ b/src/include/gnunet_nt_lib.h
@@ -88,7 +88,7 @@ struct GNUNET_NT_InterfaceScanner;
88 88
89 89
90/** 90/**
91 * Returns where the address is located: loopback, LAN or WANT. 91 * Returns where the address is located: loopback, LAN or WAN.
92 * 92 *
93 * @param is handle from #GNUNET_ATS_interface_scanner_init() 93 * @param is handle from #GNUNET_ATS_interface_scanner_init()
94 * @param addr address 94 * @param addr address
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index 3e6d1edc6..74b27923a 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -127,7 +127,7 @@ typedef struct GNUNET_TIME_Relative
127 127
128/** 128/**
129 * Function that can be called by plugins to figure if an address is 129 * Function that can be called by plugins to figure if an address is
130 * an loopback, LAN or WANT address. Ultimately invokes 130 * an loopback, LAN or WAN address. Ultimately invokes
131 * #GNUNET_ATS_address_get_type(). 131 * #GNUNET_ATS_address_get_type().
132 * 132 *
133 * @param cls closure 133 * @param cls closure
@@ -265,7 +265,7 @@ struct GNUNET_TRANSPORT_PluginEnvironment
265 265
266 /** 266 /**
267 * Function that will be called to figure if an address is an loopback, 267 * Function that will be called to figure if an address is an loopback,
268 * LAN, WANT etc. address 268 * LAN, WAN etc. address
269 */ 269 */
270 GNUNET_TRANSPORT_AddressToType get_address_type; 270 GNUNET_TRANSPORT_AddressToType get_address_type;
271 271
diff --git a/src/messenger/gnunet-messenger.c b/src/messenger/gnunet-messenger.c
index 094ae398d..094ae398d 100755..100644
--- a/src/messenger/gnunet-messenger.c
+++ b/src/messenger/gnunet-messenger.c
diff --git a/src/messenger/gnunet-service-messenger.c b/src/messenger/gnunet-service-messenger.c
index 7edd76d32..7edd76d32 100755..100644
--- a/src/messenger/gnunet-service-messenger.c
+++ b/src/messenger/gnunet-service-messenger.c
diff --git a/src/messenger/gnunet-service-messenger_member.c b/src/messenger/gnunet-service-messenger_member.c
index 7f00e8438..7f00e8438 100755..100644
--- a/src/messenger/gnunet-service-messenger_member.c
+++ b/src/messenger/gnunet-service-messenger_member.c
diff --git a/src/messenger/gnunet-service-messenger_message_store.c b/src/messenger/gnunet-service-messenger_message_store.c
index 1984eba21..1984eba21 100755..100644
--- a/src/messenger/gnunet-service-messenger_message_store.c
+++ b/src/messenger/gnunet-service-messenger_message_store.c
diff --git a/src/messenger/gnunet-service-messenger_operation_store.c b/src/messenger/gnunet-service-messenger_operation_store.c
index a32fbad2c..a32fbad2c 100755..100644
--- a/src/messenger/gnunet-service-messenger_operation_store.c
+++ b/src/messenger/gnunet-service-messenger_operation_store.c
diff --git a/src/messenger/messenger_api_contact_store.c b/src/messenger/messenger_api_contact_store.c
index 6a517c2e0..6a517c2e0 100755..100644
--- a/src/messenger/messenger_api_contact_store.c
+++ b/src/messenger/messenger_api_contact_store.c
diff --git a/src/messenger/messenger_api_message.c b/src/messenger/messenger_api_message.c
index d65b80576..d65b80576 100755..100644
--- a/src/messenger/messenger_api_message.c
+++ b/src/messenger/messenger_api_message.c
diff --git a/src/messenger/messenger_api_room.c b/src/messenger/messenger_api_room.c
index 5b7edee60..5b7edee60 100755..100644
--- a/src/messenger/messenger_api_room.c
+++ b/src/messenger/messenger_api_room.c
diff --git a/src/messenger/messenger_api_room.h b/src/messenger/messenger_api_room.h
index eb41cf740..eb41cf740 100755..100644
--- a/src/messenger/messenger_api_room.h
+++ b/src/messenger/messenger_api_room.h
diff --git a/src/my/my.c b/src/my/my.c
index 256f71742..468a4a47c 100644
--- a/src/my/my.c
+++ b/src/my/my.c
@@ -32,7 +32,7 @@
32 * Run a prepared SELECT statement. 32 * Run a prepared SELECT statement.
33 * 33 *
34 * @param mc mysql context 34 * @param mc mysql context
35 * @param sh handle to SELECT statment 35 * @param sh handle to SELECT statement
36 * @param params parameters to the statement 36 * @param params parameters to the statement
37 * @return 37 * @return
38 #GNUNET_YES if we can prepare all statement 38 #GNUNET_YES if we can prepare all statement
diff --git a/src/my/my_result_helper.c b/src/my/my_result_helper.c
index 78f1a1ec0..99b4229a4 100644
--- a/src/my/my_result_helper.c
+++ b/src/my/my_result_helper.c
@@ -663,7 +663,7 @@ pre_extract_uint16 (void *cls,
663 663
664 664
665/** 665/**
666 * Check size of extracted fixed size data from a Mysql datbase. 666 * Check size of extracted fixed size data from a Mysql database.
667 * 667 *
668 * @param cls closure 668 * @param cls closure
669 * @param[in,out] rs 669 * @param[in,out] rs
@@ -712,7 +712,7 @@ GNUNET_MY_result_spec_uint16 (uint16_t *u16)
712 712
713 713
714/** 714/**
715 * Extrac data from a MYSQL database @a result at row @a row 715 * Extract data from a MYSQL database @a result at row @a row
716 * 716 *
717 * @param cls closure 717 * @param cls closure
718 * @param cls closure 718 * @param cls closure
@@ -743,7 +743,7 @@ pre_extract_uint32 (void *cls,
743 743
744 744
745/** 745/**
746 * Extrac data from a MYSQL database @a result at row @a row 746 * Extract data from a MYSQL database @a result at row @a row
747 * 747 *
748 * @param cls closure 748 * @param cls closure
749 * @param cls closure 749 * @param cls closure
@@ -825,7 +825,7 @@ pre_extract_uint64 (void *cls,
825 825
826 826
827/** 827/**
828 * Check size of extracted fixe size data from a Mysql database 828 * Check size of extracted fixed-size data from a Mysql database
829 * 829 *
830 * @param cls closure 830 * @param cls closure
831 * @param[in,out] rs 831 * @param[in,out] rs
diff --git a/src/my/test_my.c b/src/my/test_my.c
index c639fcfdd..ffb5a5f13 100644
--- a/src/my/test_my.c
+++ b/src/my/test_my.c
@@ -33,7 +33,7 @@
33 * Run actual test queries. 33 * Run actual test queries.
34 * 34 *
35 * @param contexte the current context of mysql 35 * @param contexte the current context of mysql
36 * @return 0 on succes 36 * @return 0 on success
37 */ 37 */
38static int 38static int
39run_queries (struct GNUNET_MYSQL_Context *context) 39run_queries (struct GNUNET_MYSQL_Context *context)
@@ -252,7 +252,7 @@ main (int argc, const char *const argv[])
252 if (GNUNET_OK != 252 if (GNUNET_OK !=
253 GNUNET_CONFIGURATION_parse (config, "test_my.conf")) 253 GNUNET_CONFIGURATION_parse (config, "test_my.conf"))
254 { 254 {
255 fprintf (stderr, "Failed to parse configuaration\n"); 255 fprintf (stderr, "Failed to parse configuration\n");
256 return 1; 256 return 1;
257 } 257 }
258 258
diff --git a/src/mysql/mysql.c b/src/mysql/mysql.c
index e20debc82..738659864 100644
--- a/src/mysql/mysql.c
+++ b/src/mysql/mysql.c
@@ -209,7 +209,7 @@ get_my_cnf_path (const struct GNUNET_CONFIGURATION_Handle *cfg,
209 * Open the connection with the database (and initialize 209 * Open the connection with the database (and initialize
210 * our default options). 210 * our default options).
211 * 211 *
212 * @param mc database context to initialze 212 * @param mc database context to initialize
213 * @return #GNUNET_OK on success 213 * @return #GNUNET_OK on success
214 */ 214 */
215static int 215static int
diff --git a/src/namestore/gnunet-namestore-fcfsd.c b/src/namestore/gnunet-namestore-fcfsd.c
index 6d794746e..313aea6fc 100644
--- a/src/namestore/gnunet-namestore-fcfsd.c
+++ b/src/namestore/gnunet-namestore-fcfsd.c
@@ -194,7 +194,7 @@ struct ZoneinfoRequest
194}; 194};
195 195
196/** 196/**
197 * MHD deamon reference. 197 * MHD daemon reference.
198 */ 198 */
199static struct MHD_Daemon *httpd; 199static struct MHD_Daemon *httpd;
200 200
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c
index 79210939f..cd953492e 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -88,13 +88,13 @@ struct ZoneIteration
88 * Last sequence number in the zone iteration used to address next 88 * Last sequence number in the zone iteration used to address next
89 * result of the zone iteration in the store 89 * result of the zone iteration in the store
90 * 90 *
91 * Initialy set to 0. 91 * Initially set to 0.
92 * Updated in #zone_iterate_proc() 92 * Updated in #zone_iterate_proc()
93 */ 93 */
94 uint64_t seq; 94 uint64_t seq;
95 95
96 /** 96 /**
97 * The operation id fot the zone iteration in the response for the client 97 * The operation id for the zone iteration in the response for the client
98 */ 98 */
99 uint32_t request_id; 99 uint32_t request_id;
100 100
@@ -102,7 +102,7 @@ struct ZoneIteration
102 * Offset of the zone iteration used to address next result of the zone 102 * Offset of the zone iteration used to address next result of the zone
103 * iteration in the store 103 * iteration in the store
104 * 104 *
105 * Initialy set to 0 in #handle_iteration_start 105 * Initially set to 0 in #handle_iteration_start
106 * Incremented with by every call to #handle_iteration_next 106 * Incremented with by every call to #handle_iteration_next
107 */ 107 */
108 uint32_t offset; 108 uint32_t offset;
@@ -195,7 +195,7 @@ struct ZoneMonitor
195 * Last sequence number in the zone iteration used to address next 195 * Last sequence number in the zone iteration used to address next
196 * result of the zone iteration in the store 196 * result of the zone iteration in the store
197 * 197 *
198 * Initialy set to 0. 198 * Initially set to 0.
199 * Updated in #monitor_iterate_cb() 199 * Updated in #monitor_iterate_cb()
200 */ 200 */
201 uint64_t seq; 201 uint64_t seq;
@@ -1821,7 +1821,8 @@ run_zone_iteration_round (struct ZoneIteration *zi, uint64_t limit)
1821 start = GNUNET_TIME_absolute_get (); 1821 start = GNUNET_TIME_absolute_get ();
1822 GNUNET_break (GNUNET_SYSERR != 1822 GNUNET_break (GNUNET_SYSERR !=
1823 GSN_database->iterate_records (GSN_database->cls, 1823 GSN_database->iterate_records (GSN_database->cls,
1824 (GNUNET_YES == GNUNET_is_zero (&zi->zone)) 1824 (GNUNET_YES == GNUNET_is_zero (
1825 &zi->zone))
1825 ? NULL 1826 ? NULL
1826 : &zi->zone, 1827 : &zi->zone,
1827 zi->seq, 1828 zi->seq,
@@ -2095,7 +2096,8 @@ monitor_iteration_next (void *cls)
2095 else 2096 else
2096 zm->iteration_cnt = zm->limit; /* use it all */ 2097 zm->iteration_cnt = zm->limit; /* use it all */
2097 ret = GSN_database->iterate_records (GSN_database->cls, 2098 ret = GSN_database->iterate_records (GSN_database->cls,
2098 (GNUNET_YES == GNUNET_is_zero (&zm->zone)) 2099 (GNUNET_YES == GNUNET_is_zero (
2100 &zm->zone))
2099 ? NULL 2101 ? NULL
2100 : &zm->zone, 2102 : &zm->zone,
2101 zm->seq, 2103 zm->seq,
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index 2d5327e06..b24db9b26 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -324,7 +324,7 @@ free_ze (struct GNUNET_NAMESTORE_ZoneIterator *ze)
324 324
325 325
326/** 326/**
327 * Check that @a rd_buf of lenght @a rd_len contains 327 * Check that @a rd_buf of length @a rd_len contains
328 * @a rd_count records. 328 * @a rd_count records.
329 * 329 *
330 * @param rd_len length of @a rd_buf 330 * @param rd_len length of @a rd_buf
@@ -557,7 +557,7 @@ handle_record_result (void *cls, const struct RecordResultMessage *msg)
557 return; /* rid not found */ 557 return; /* rid not found */
558 if ((NULL != ze) && (NULL != qe)) 558 if ((NULL != ze) && (NULL != qe))
559 { 559 {
560 GNUNET_break (0); /* rid ambigous */ 560 GNUNET_break (0); /* rid ambiguous */
561 force_reconnect (h); 561 force_reconnect (h);
562 return; 562 return;
563 } 563 }
@@ -614,7 +614,7 @@ handle_record_result_end (void *cls, const struct GNUNET_NAMESTORE_Header *msg)
614 return; /* rid not found */ 614 return; /* rid not found */
615 if ((NULL != ze) && (NULL != qe)) 615 if ((NULL != ze) && (NULL != qe))
616 { 616 {
617 GNUNET_break (0); /* rid ambigous */ 617 GNUNET_break (0); /* rid ambiguous */
618 force_reconnect (h); 618 force_reconnect (h);
619 return; 619 return;
620 } 620 }
diff --git a/src/namestore/perf_namestore_api_zone_iteration.c b/src/namestore/perf_namestore_api_zone_iteration.c
index f46a1c523..ce1cddf87 100644
--- a/src/namestore/perf_namestore_api_zone_iteration.c
+++ b/src/namestore/perf_namestore_api_zone_iteration.c
@@ -248,7 +248,7 @@ zone_proc (void *cls,
248 off++; 248 off++;
249 left_until_next--; 249 left_until_next--;
250 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 250 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
251 "Obtained record %u, expecting %u more until asking for mor explicitly\n", 251 "Obtained record %u, expecting %u more until asking for more explicitly\n",
252 off, 252 off,
253 left_until_next); 253 left_until_next);
254 if (0 == left_until_next) 254 if (0 == left_until_next)
diff --git a/src/namestore/plugin_namestore_flat.c b/src/namestore/plugin_namestore_flat.c
index 9ccc90cfd..3576b14e0 100644
--- a/src/namestore/plugin_namestore_flat.c
+++ b/src/namestore/plugin_namestore_flat.c
@@ -57,7 +57,7 @@ struct FlatFileEntry
57 struct GNUNET_IDENTITY_PrivateKey private_key; 57 struct GNUNET_IDENTITY_PrivateKey private_key;
58 58
59 /** 59 /**
60 * Record cound 60 * Record count.
61 */ 61 */
62 uint32_t record_count; 62 uint32_t record_count;
63 63
diff --git a/src/nat-auto/gnunet-nat-auto.c b/src/nat-auto/gnunet-nat-auto.c
index 95a7ced9e..055a949bd 100644
--- a/src/nat-auto/gnunet-nat-auto.c
+++ b/src/nat-auto/gnunet-nat-auto.c
@@ -101,7 +101,7 @@ test_finished ()
101 101
102 102
103/** 103/**
104 * Function to iterate over sugested changes options 104 * Function to iterate over suggested changes options
105 * 105 *
106 * @param cls closure 106 * @param cls closure
107 * @param section name of the section 107 * @param section name of the section
diff --git a/src/nat-auto/gnunet-nat-auto_legacy.c b/src/nat-auto/gnunet-nat-auto_legacy.c
index 8ba50c184..4334cc953 100644
--- a/src/nat-auto/gnunet-nat-auto_legacy.c
+++ b/src/nat-auto/gnunet-nat-auto_legacy.c
@@ -180,7 +180,7 @@ struct GNUNET_NAT_Test
180 * 180 *
181 * @param cls closure, our `struct GNUNET_NAT_Handle` 181 * @param cls closure, our `struct GNUNET_NAT_Handle`
182 * @param addr public IP address of the other peer 182 * @param addr public IP address of the other peer
183 * @param addrlen actual lenght of the @a addr 183 * @param addrlen actual length of the @a addr
184 */ 184 */
185static void 185static void
186reversal_cb (void *cls, const struct sockaddr *addr, socklen_t addrlen) 186reversal_cb (void *cls, const struct sockaddr *addr, socklen_t addrlen)
diff --git a/src/nat-auto/gnunet-nat-server.c b/src/nat-auto/gnunet-nat-server.c
index b462b486f..e091ab3b0 100644
--- a/src/nat-auto/gnunet-nat-server.c
+++ b/src/nat-auto/gnunet-nat-server.c
@@ -54,7 +54,7 @@ static const struct GNUNET_CONFIGURATION_Handle *cfg;
54 54
55 55
56/** 56/**
57 * Try contacting the peer using autonomous NAT traveral method. 57 * Try contacting the peer using autonomous NAT traversal method.
58 * 58 *
59 * @param dst_ipv4 IPv4 address to send the fake ICMP message 59 * @param dst_ipv4 IPv4 address to send the fake ICMP message
60 * @param dport destination port to include in ICMP message 60 * @param dport destination port to include in ICMP message
diff --git a/src/nat-auto/nat_auto_api_test.c b/src/nat-auto/nat_auto_api_test.c
index ec7557cd0..b62d08683 100644
--- a/src/nat-auto/nat_auto_api_test.c
+++ b/src/nat-auto/nat_auto_api_test.c
@@ -180,7 +180,7 @@ struct GNUNET_NAT_AUTO_Test
180 * 180 *
181 * @param cls closure, our `struct GNUNET_NAT_Handle` 181 * @param cls closure, our `struct GNUNET_NAT_Handle`
182 * @param addr public IP address of the other peer 182 * @param addr public IP address of the other peer
183 * @param addrlen actual lenght of the @a addr 183 * @param addrlen actual length of the @a addr
184 */ 184 */
185static void 185static void
186reversal_cb (void *cls, const struct sockaddr *addr, socklen_t addrlen) 186reversal_cb (void *cls, const struct sockaddr *addr, socklen_t addrlen)
diff --git a/src/nat/nat_api.c b/src/nat/nat_api.c
index c1125dc75..4622b1428 100644
--- a/src/nat/nat_api.c
+++ b/src/nat/nat_api.c
@@ -368,7 +368,7 @@ do_connect (void *cls)
368 * @param num_addrs number of addresses in @a addrs 368 * @param num_addrs number of addresses in @a addrs
369 * @param addrs list of local addresses packets should be redirected to 369 * @param addrs list of local addresses packets should be redirected to
370 * @param addrlens actual lengths of the addresses in @a addrs 370 * @param addrlens actual lengths of the addresses in @a addrs
371 * @param address_callback function to call everytime the public IP address changes 371 * @param address_callback function to call every time the public IP address changes
372 * @param reversal_callback function to call if someone wants connection reversal from us, 372 * @param reversal_callback function to call if someone wants connection reversal from us,
373 * NULL if connection reversal is not supported 373 * NULL if connection reversal is not supported
374 * @param callback_cls closure for callbacks 374 * @param callback_cls closure for callbacks
diff --git a/src/nat/nat_api_stun.c b/src/nat/nat_api_stun.c
index 461dae1f5..0bc2c5fbd 100644
--- a/src/nat/nat_api_stun.c
+++ b/src/nat/nat_api_stun.c
@@ -71,7 +71,7 @@ struct GNUNET_NAT_STUN_Handle
71 char *stun_server; 71 char *stun_server;
72 72
73 /** 73 /**
74 * Function to call when a error occours 74 * Function to call when a error occurs
75 */ 75 */
76 GNUNET_NAT_TestCallback cb; 76 GNUNET_NAT_TestCallback cb;
77 77
diff --git a/src/nat/test_nat_mini.c b/src/nat/test_nat_mini.c
index 8cbd4131d..528815e1a 100644
--- a/src/nat/test_nat_mini.c
+++ b/src/nat/test_nat_mini.c
@@ -17,14 +17,14 @@
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
20
21/** 20/**
22 * Testcase for port redirection and public IP address retrieval.
23 * This test never fails, because there need to be a NAT box set up for tha *
24 * @file nat/test_nat_mini.c 21 * @file nat/test_nat_mini.c
25 * @brief Testcase for NAT library - mini 22 * @brief Testcase for NAT library - mini
26 * @author Christian Grothoff 23 * @author Christian Grothoff
27 * 24 *
25 * Testcase for port redirection and public IP address retrieval.
26 * This test never fails, because there need to be a NAT box set up for that
27 *
28 * TODO: actually use ARM to start resolver service to make DNS work! 28 * TODO: actually use ARM to start resolver service to make DNS work!
29 */ 29 */
30 30
diff --git a/src/peerinfo-tool/plugin_rest_peerinfo.c b/src/peerinfo-tool/plugin_rest_peerinfo.c
index f969a175b..13e2e863b 100644
--- a/src/peerinfo-tool/plugin_rest_peerinfo.c
+++ b/src/peerinfo-tool/plugin_rest_peerinfo.c
@@ -256,7 +256,7 @@ struct RequestHandle
256 char *emsg; 256 char *emsg;
257 257
258 /** 258 /**
259 * Reponse code 259 * Response code
260 */ 260 */
261 int response_code; 261 int response_code;
262}; 262};
diff --git a/src/peerstore/peerstore_api.c b/src/peerstore/peerstore_api.c
index 196d44faa..502b38646 100644
--- a/src/peerstore/peerstore_api.c
+++ b/src/peerstore/peerstore_api.c
@@ -377,7 +377,7 @@ rewatch_it (void *cls, const struct GNUNET_HashCode *key, void *value)
377/** 377/**
378 * Iterator over watch requests to cancel them. 378 * Iterator over watch requests to cancel them.
379 * 379 *
380 * @param cls unsused 380 * @param cls unused
381 * @param key key to the watch request 381 * @param key key to the watch request
382 * @param value watch context 382 * @param value watch context
383 * @return #GNUNET_YES to continue iteration 383 * @return #GNUNET_YES to continue iteration
@@ -534,7 +534,7 @@ GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h,
534 struct GNUNET_PEERSTORE_StoreContext *sc; 534 struct GNUNET_PEERSTORE_StoreContext *sc;
535 535
536 LOG (GNUNET_ERROR_TYPE_DEBUG, 536 LOG (GNUNET_ERROR_TYPE_DEBUG,
537 "Storing value (size: %lu) for subsytem `%s', peer `%s', key `%s'\n", 537 "Storing value (size: %lu) for subsystem `%s', peer `%s', key `%s'\n",
538 size, 538 size,
539 sub_system, 539 sub_system,
540 GNUNET_i2s (peer), 540 GNUNET_i2s (peer),
diff --git a/src/pt/gnunet-daemon-pt.c b/src/pt/gnunet-daemon-pt.c
index bcc913bd2..da4374223 100644
--- a/src/pt/gnunet-daemon-pt.c
+++ b/src/pt/gnunet-daemon-pt.c
@@ -138,7 +138,7 @@ struct CadetExit
138 138
139 /** 139 /**
140 * Channel we use for DNS requests over CADET, NULL if we did 140 * Channel we use for DNS requests over CADET, NULL if we did
141 * not initialze a channel to this peer yet. 141 * not initialize a channel to this peer yet.
142 */ 142 */
143 struct GNUNET_CADET_Channel *cadet_channel; 143 struct GNUNET_CADET_Channel *cadet_channel;
144 144
diff --git a/src/pt/test_gns_vpn.c b/src/pt/test_gns_vpn.c
index e20d835f8..d2d28d7c7 100644
--- a/src/pt/test_gns_vpn.c
+++ b/src/pt/test_gns_vpn.c
@@ -144,7 +144,7 @@ mhd_ahc (void *cls,
144 } 144 }
145 *unused = NULL; 145 *unused = NULL;
146 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 146 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
147 "MHD sends respose for request to URL `%s'\n", url); 147 "MHD sends response for request to URL `%s'\n", url);
148 response = MHD_create_response_from_buffer (strlen (url), 148 response = MHD_create_response_from_buffer (strlen (url),
149 (void *) url, 149 (void *) url,
150 MHD_RESPMEM_MUST_COPY); 150 MHD_RESPMEM_MUST_COPY);
diff --git a/src/pt/test_gnunet_vpn.c b/src/pt/test_gnunet_vpn.c
index 8ffadeca4..ab197b60d 100644
--- a/src/pt/test_gnunet_vpn.c
+++ b/src/pt/test_gnunet_vpn.c
@@ -120,7 +120,7 @@ mhd_ahc (void *cls,
120 } 120 }
121 *unused = NULL; 121 *unused = NULL;
122 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 122 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
123 "MHD sends respose for request to URL `%s'\n", url); 123 "MHD sends response for request to URL `%s'\n", url);
124 response = 124 response =
125 MHD_create_response_from_buffer (strlen (url), (void *) url, 125 MHD_create_response_from_buffer (strlen (url), (void *) url,
126 MHD_RESPMEM_MUST_COPY); 126 MHD_RESPMEM_MUST_COPY);
diff --git a/src/reclaim/gnunet-service-reclaim.c b/src/reclaim/gnunet-service-reclaim.c
index 04c12735b..105187c26 100644
--- a/src/reclaim/gnunet-service-reclaim.c
+++ b/src/reclaim/gnunet-service-reclaim.c
@@ -1824,7 +1824,7 @@ handle_credential_delete_message (void *cls,
1824 1824
1825 1825
1826/************************************************* 1826/*************************************************
1827 * Attrubute iteration 1827 * Attribute iteration
1828 *************************************************/ 1828 *************************************************/
1829 1829
1830 1830
diff --git a/src/reclaim/gnunet-service-reclaim_tickets.c b/src/reclaim/gnunet-service-reclaim_tickets.c
index 48b3fe214..5d3119c6f 100644
--- a/src/reclaim/gnunet-service-reclaim_tickets.c
+++ b/src/reclaim/gnunet-service-reclaim_tickets.c
@@ -29,7 +29,7 @@
29 29
30 30
31/** 31/**
32 * FIXME: the defaul ticket iteration interval should probably 32 * FIXME: the default ticket iteration interval should probably
33 * be the minimim attribute expiration. 33 * be the minimim attribute expiration.
34 */ 34 */
35#define DEFAULT_TICKET_REFRESH_INTERVAL GNUNET_TIME_UNIT_HOURS 35#define DEFAULT_TICKET_REFRESH_INTERVAL GNUNET_TIME_UNIT_HOURS
@@ -129,7 +129,7 @@ struct RECLAIM_TICKETS_ConsumeHandle
129 RECLAIM_TICKETS_ConsumeCallback cb; 129 RECLAIM_TICKETS_ConsumeCallback cb;
130 130
131 /** 131 /**
132 * Callbacl closure 132 * Callback closure
133 */ 133 */
134 void *cb_cls; 134 void *cb_cls;
135}; 135};
@@ -1319,31 +1319,32 @@ issue_ticket (struct TicketIssueHandle *ih)
1319 { 1319 {
1320 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1320 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1321 "Attribute is backed by credential. Adding...\n"); 1321 "Attribute is backed by credential. Adding...\n");
1322 struct GNUNET_RECLAIM_Presentation *pres = NULL; 1322 struct GNUNET_RECLAIM_Presentation *presentation = NULL;
1323 for (j = 0; j < i; j++) 1323 for (j = 0; j < i; j++)
1324 { 1324 {
1325 if (attrs_record[j].record_type 1325 if (attrs_record[j].record_type
1326 != GNUNET_GNSRECORD_TYPE_RECLAIM_PRESENTATION) 1326 != GNUNET_GNSRECORD_TYPE_RECLAIM_PRESENTATION)
1327 continue; 1327 continue;
1328 pres = GNUNET_RECLAIM_presentation_deserialize (attrs_record[j].data, 1328 presentation = GNUNET_RECLAIM_presentation_deserialize (
1329 attrs_record[j]. 1329 attrs_record[j].data,
1330 data_size); 1330 attrs_record[j].
1331 if (NULL == pres) 1331 data_size);
1332 if (NULL == presentation)
1332 { 1333 {
1333 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 1334 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1334 "Failed to deserialize presentation\n"); 1335 "Failed to deserialize presentation\n");
1335 continue; 1336 continue;
1336 } 1337 }
1337 if (0 == memcmp (&pres->credential_id, 1338 if (0 == memcmp (&presentation->credential_id,
1338 &le->attribute->credential, 1339 &le->attribute->credential,
1339 sizeof (le->attribute->credential))) 1340 sizeof (le->attribute->credential)))
1340 break; 1341 break;
1341 GNUNET_free (pres); 1342 GNUNET_free (presentation);
1342 pres = NULL; 1343 presentation = NULL;
1343 } 1344 }
1344 if (NULL != pres) 1345 if (NULL != presentation)
1345 { 1346 {
1346 GNUNET_free (pres); 1347 GNUNET_free (presentation);
1347 continue; // Skip as we have already added this credential presentation. 1348 continue; // Skip as we have already added this credential presentation.
1348 } 1349 }
1349 for (ple = ih->presentations->list_head; NULL != ple; ple = ple->next) 1350 for (ple = ih->presentations->list_head; NULL != ple; ple = ple->next)
@@ -1361,6 +1362,7 @@ issue_ticket (struct TicketIssueHandle *ih)
1361 } 1362 }
1362 char *pres_buf; 1363 char *pres_buf;
1363 size_t pres_size; 1364 size_t pres_size;
1365
1364 pres_size = 1366 pres_size =
1365 GNUNET_RECLAIM_presentation_serialize_get_size (ple->presentation); 1367 GNUNET_RECLAIM_presentation_serialize_get_size (ple->presentation);
1366 pres_buf = GNUNET_malloc (pres_size); 1368 pres_buf = GNUNET_malloc (pres_size);
@@ -1457,7 +1459,7 @@ filter_tickets_cb (void *cls,
1457{ 1459{
1458 struct TicketIssueHandle *tih = cls; 1460 struct TicketIssueHandle *tih = cls;
1459 struct GNUNET_RECLAIM_Ticket *ticket = NULL; 1461 struct GNUNET_RECLAIM_Ticket *ticket = NULL;
1460 struct GNUNET_RECLAIM_Presentation *pres; 1462 struct GNUNET_RECLAIM_Presentation *presentation;
1461 struct GNUNET_RECLAIM_PresentationList *ticket_presentations; 1463 struct GNUNET_RECLAIM_PresentationList *ticket_presentations;
1462 struct GNUNET_RECLAIM_Credential *cred; 1464 struct GNUNET_RECLAIM_Credential *cred;
1463 struct GNUNET_RECLAIM_PresentationListEntry *ple; 1465 struct GNUNET_RECLAIM_PresentationListEntry *ple;
@@ -1526,7 +1528,7 @@ filter_tickets_cb (void *cls,
1526 if (GNUNET_OK != GNUNET_RECLAIM_credential_get_presentation ( 1528 if (GNUNET_OK != GNUNET_RECLAIM_credential_get_presentation (
1527 cred, 1529 cred,
1528 tih->attrs, 1530 tih->attrs,
1529 &pres)) 1531 &presentation))
1530 { 1532 {
1531 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1533 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
1532 "Unable to retrieve presentation from credential\n"); 1534 "Unable to retrieve presentation from credential\n");
@@ -1534,7 +1536,7 @@ filter_tickets_cb (void *cls,
1534 continue; 1536 continue;
1535 } 1537 }
1536 ple = GNUNET_new (struct GNUNET_RECLAIM_PresentationListEntry); 1538 ple = GNUNET_new (struct GNUNET_RECLAIM_PresentationListEntry);
1537 ple->presentation = pres; 1539 ple->presentation = presentation;
1538 GNUNET_CONTAINER_DLL_insert (tih->presentations->list_head, 1540 GNUNET_CONTAINER_DLL_insert (tih->presentations->list_head,
1539 tih->presentations->list_tail, 1541 tih->presentations->list_tail,
1540 ple); 1542 ple);
@@ -1546,20 +1548,21 @@ filter_tickets_cb (void *cls,
1546 { 1548 {
1547 for (le = tih->attrs->list_head; NULL != le; le = le->next) 1549 for (le = tih->attrs->list_head; NULL != le; le = le->next)
1548 { 1550 {
1549 pres = GNUNET_RECLAIM_presentation_deserialize (rd[i].data, 1551 presentation = GNUNET_RECLAIM_presentation_deserialize (rd[i].data,
1550 rd[i].data_size); 1552 rd[i].data_size);
1551 if (NULL == pres) 1553 if (NULL == presentation)
1552 { 1554 {
1553 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 1555 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1554 "Failed to deserialize presentation\n"); 1556 "Failed to deserialize presentation\n");
1555 continue; 1557 continue;
1556 } 1558 }
1557 if (GNUNET_YES == GNUNET_RECLAIM_id_is_equal (&pres->credential_id, 1559 if (GNUNET_YES == GNUNET_RECLAIM_id_is_equal (
1558 &le->attribute->credential)) 1560 &presentation->credential_id,
1561 &le->attribute->credential))
1559 { 1562 {
1560 found_pres_cnt++; 1563 found_pres_cnt++;
1561 ple = GNUNET_new (struct GNUNET_RECLAIM_PresentationListEntry); 1564 ple = GNUNET_new (struct GNUNET_RECLAIM_PresentationListEntry);
1562 ple->presentation = pres; 1565 ple->presentation = presentation;
1563 GNUNET_CONTAINER_DLL_insert (ticket_presentations->list_head, 1566 GNUNET_CONTAINER_DLL_insert (ticket_presentations->list_head,
1564 ticket_presentations->list_tail, 1567 ticket_presentations->list_tail,
1565 ple); 1568 ple);
diff --git a/src/reclaim/oidc_helper.c b/src/reclaim/oidc_helper.c
index 7b24ee598..9237902ce 100644
--- a/src/reclaim/oidc_helper.c
+++ b/src/reclaim/oidc_helper.c
@@ -237,7 +237,7 @@ generate_userinfo_json (const struct GNUNET_IDENTITY_PublicKey *sub_key,
237 le->attribute->data, 237 le->attribute->data,
238 le->attribute->data_size); 238 le->attribute->data_size);
239 /** 239 /**
240 * There is this wierd quirk that the individual address claim(s) must be 240 * There is this weird quirk that the individual address claim(s) must be
241 * inside a JSON object of the "address" claim. 241 * inside a JSON object of the "address" claim.
242 */ 242 */
243 if (GNUNET_YES == is_claim_in_address_scope (le->attribute->name)) 243 if (GNUNET_YES == is_claim_in_address_scope (le->attribute->name))
@@ -287,7 +287,7 @@ generate_userinfo_json (const struct GNUNET_IDENTITY_PublicKey *sub_key,
287 continue; 287 continue;
288 } 288 }
289 /** 289 /**
290 * There is this wierd quirk that the individual address claim(s) must be 290 * There is this weird quirk that the individual address claim(s) must be
291 * inside a JSON object of the "address" claim. 291 * inside a JSON object of the "address" claim.
292 */ 292 */
293 if (GNUNET_YES == is_claim_in_address_scope (le->attribute->name)) 293 if (GNUNET_YES == is_claim_in_address_scope (le->attribute->name))
diff --git a/src/reclaim/plugin_reclaim_credential_jwt.c b/src/reclaim/plugin_reclaim_credential_jwt.c
index fb01903aa..5d5e221f9 100644
--- a/src/reclaim/plugin_reclaim_credential_jwt.c
+++ b/src/reclaim/plugin_reclaim_credential_jwt.c
@@ -194,7 +194,8 @@ jwt_parse_attributes (void *cls,
194 continue; 194 continue;
195 if (0 == strcmp ("address", key)) 195 if (0 == strcmp ("address", key))
196 { 196 {
197 if (!json_is_object(value)) { 197 if (! json_is_object (value))
198 {
198 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 199 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
199 "address claim in wrong format!"); 200 "address claim in wrong format!");
200 continue; 201 continue;
@@ -202,12 +203,12 @@ jwt_parse_attributes (void *cls,
202 json_object_foreach (value, addr_key, addr_value) { 203 json_object_foreach (value, addr_key, addr_value) {
203 val_str = json_dumps (addr_value, JSON_ENCODE_ANY); 204 val_str = json_dumps (addr_value, JSON_ENCODE_ANY);
204 tmp = val_str; 205 tmp = val_str;
205 //Remove leading " from jasson conversion 206 // Remove leading " from jasson conversion
206 if (tmp[0] == '"') 207 if (tmp[0] == '"')
207 tmp++; 208 tmp++;
208 //Remove trailing " from jansson conversion 209 // Remove trailing " from jansson conversion
209 if (tmp[strlen(tmp)-1] == '"') 210 if (tmp[strlen (tmp) - 1] == '"')
210 tmp[strlen(tmp)-1] = '\0'; 211 tmp[strlen (tmp) - 1] = '\0';
211 GNUNET_RECLAIM_attribute_list_add (attrs, 212 GNUNET_RECLAIM_attribute_list_add (attrs,
212 addr_key, 213 addr_key,
213 NULL, 214 NULL,
@@ -220,12 +221,12 @@ jwt_parse_attributes (void *cls,
220 } 221 }
221 val_str = json_dumps (value, JSON_ENCODE_ANY); 222 val_str = json_dumps (value, JSON_ENCODE_ANY);
222 tmp = val_str; 223 tmp = val_str;
223 //Remove leading " from jasson conversion 224 // Remove leading " from jasson conversion
224 if (tmp[0] == '"') 225 if (tmp[0] == '"')
225 tmp++; 226 tmp++;
226 //Remove trailing " from jansson conversion 227 // Remove trailing " from jansson conversion
227 if (tmp[strlen(tmp)-1] == '"') 228 if (tmp[strlen (tmp) - 1] == '"')
228 tmp[strlen(tmp)-1] = '\0'; 229 tmp[strlen (tmp) - 1] = '\0';
229 GNUNET_RECLAIM_attribute_list_add (attrs, 230 GNUNET_RECLAIM_attribute_list_add (attrs,
230 key, 231 key,
231 NULL, 232 NULL,
@@ -307,7 +308,8 @@ jwt_get_issuer (void *cls,
307 if (NULL == json_val) 308 if (NULL == json_val)
308 return NULL; 309 return NULL;
309 issuer_json = json_object_get (json_val, "iss"); 310 issuer_json = json_object_get (json_val, "iss");
310 if ((NULL == issuer_json) || (! json_is_string (issuer_json))) { 311 if ((NULL == issuer_json) || (! json_is_string (issuer_json)))
312 {
311 json_decref (json_val); 313 json_decref (json_val);
312 return NULL; 314 return NULL;
313 } 315 }
@@ -384,7 +386,8 @@ jwt_get_expiration (void *cls,
384 if (NULL == json_val) 386 if (NULL == json_val)
385 return GNUNET_SYSERR; 387 return GNUNET_SYSERR;
386 exp_json = json_object_get (json_val, "exp"); 388 exp_json = json_object_get (json_val, "exp");
387 if ((NULL == exp_json) || (! json_is_integer (exp_json))) { 389 if ((NULL == exp_json) || (! json_is_integer (exp_json)))
390 {
388 json_decref (json_val); 391 json_decref (json_val);
389 return GNUNET_SYSERR; 392 return GNUNET_SYSERR;
390 } 393 }
@@ -434,13 +437,14 @@ enum GNUNET_GenericReturnValue
434jwt_create_presentation (void *cls, 437jwt_create_presentation (void *cls,
435 const struct GNUNET_RECLAIM_Credential *cred, 438 const struct GNUNET_RECLAIM_Credential *cred,
436 const struct GNUNET_RECLAIM_AttributeList *attrs, 439 const struct GNUNET_RECLAIM_AttributeList *attrs,
437 struct GNUNET_RECLAIM_Presentation **pres) 440 struct GNUNET_RECLAIM_Presentation **presentation)
438{ 441{
439 if (GNUNET_RECLAIM_CREDENTIAL_TYPE_JWT != cred->type) 442 if (GNUNET_RECLAIM_CREDENTIAL_TYPE_JWT != cred->type)
440 return GNUNET_NO; 443 return GNUNET_NO;
441 *pres = GNUNET_RECLAIM_presentation_new (GNUNET_RECLAIM_CREDENTIAL_TYPE_JWT, 444 *presentation = GNUNET_RECLAIM_presentation_new (
442 cred->data, 445 GNUNET_RECLAIM_CREDENTIAL_TYPE_JWT,
443 cred->data_size); 446 cred->data,
447 cred->data_size);
444 return GNUNET_OK; 448 return GNUNET_OK;
445} 449}
446 450
diff --git a/src/reclaim/plugin_reclaim_credential_pabc.c b/src/reclaim/plugin_reclaim_credential_pabc.c
index 89acd9032..a906805fb 100644
--- a/src/reclaim/plugin_reclaim_credential_pabc.c
+++ b/src/reclaim/plugin_reclaim_credential_pabc.c
@@ -154,7 +154,7 @@ inspect_attrs (char const *const key,
154 if (NULL == value) 154 if (NULL == value)
155 return; 155 return;
156 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 156 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
157 "Found attribue in PABC credential: `%s': `%s'\n", 157 "Found attribute in PABC credential: `%s': `%s'\n",
158 key, value); 158 key, value);
159 if (0 == strcmp (key, "expiration")) 159 if (0 == strcmp (key, "expiration"))
160 return; 160 return;
@@ -362,7 +362,7 @@ int
362pabc_create_presentation (void *cls, 362pabc_create_presentation (void *cls,
363 const struct GNUNET_RECLAIM_Credential *credential, 363 const struct GNUNET_RECLAIM_Credential *credential,
364 const struct GNUNET_RECLAIM_AttributeList *attrs, 364 const struct GNUNET_RECLAIM_AttributeList *attrs,
365 struct GNUNET_RECLAIM_Presentation **pres) 365 struct GNUNET_RECLAIM_Presentation **presentation)
366{ 366{
367 struct pabc_context *ctx = NULL; 367 struct pabc_context *ctx = NULL;
368 struct pabc_user_context *usr_ctx = NULL; 368 struct pabc_user_context *usr_ctx = NULL;
@@ -508,9 +508,10 @@ pabc_create_presentation (void *cls,
508 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 508 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
509 "Presentation: %s\n", json_enc); 509 "Presentation: %s\n", json_enc);
510 // clean up 510 // clean up
511 *pres = GNUNET_RECLAIM_presentation_new (GNUNET_RECLAIM_CREDENTIAL_TYPE_PABC, 511 *presentation = GNUNET_RECLAIM_presentation_new (
512 json_enc, 512 GNUNET_RECLAIM_CREDENTIAL_TYPE_PABC,
513 strlen (json_enc) + 1); 513 json_enc,
514 strlen (json_enc) + 1);
514 GNUNET_free (json_enc); 515 GNUNET_free (json_enc);
515 PABC_FREE_NULL (json); 516 PABC_FREE_NULL (json);
516 pabc_free_proof (ctx, pp, &proof); 517 pabc_free_proof (ctx, pp, &proof);
diff --git a/src/reclaim/plugin_rest_openid_connect.c b/src/reclaim/plugin_rest_openid_connect.c
index fef79fb10..88b928526 100644
--- a/src/reclaim/plugin_rest_openid_connect.c
+++ b/src/reclaim/plugin_rest_openid_connect.c
@@ -551,7 +551,7 @@ struct RequestHandle
551 char *edesc; 551 char *edesc;
552 552
553 /** 553 /**
554 * Reponse code 554 * Response code
555 */ 555 */
556 int response_code; 556 int response_code;
557 557
@@ -974,7 +974,8 @@ oidc_iteration_error (void *cls)
974static void 974static void
975oidc_ticket_issue_cb (void *cls, 975oidc_ticket_issue_cb (void *cls,
976 const struct GNUNET_RECLAIM_Ticket *ticket, 976 const struct GNUNET_RECLAIM_Ticket *ticket,
977 const struct GNUNET_RECLAIM_PresentationList *pres) 977 const struct
978 GNUNET_RECLAIM_PresentationList *presentation)
978{ 979{
979 struct RequestHandle *handle = cls; 980 struct RequestHandle *handle = cls;
980 struct MHD_Response *resp; 981 struct MHD_Response *resp;
@@ -997,7 +998,7 @@ oidc_ticket_issue_cb (void *cls,
997 code_string = OIDC_build_authz_code (&handle->priv_key, 998 code_string = OIDC_build_authz_code (&handle->priv_key,
998 &handle->ticket, 999 &handle->ticket,
999 handle->attr_idtoken_list, 1000 handle->attr_idtoken_list,
1000 pres, 1001 presentation,
1001 handle->oidc->nonce, 1002 handle->oidc->nonce,
1002 handle->oidc->code_challenge); 1003 handle->oidc->code_challenge);
1003 if ((NULL != handle->redirect_prefix) && (NULL != handle->redirect_suffix) && 1004 if ((NULL != handle->redirect_prefix) && (NULL != handle->redirect_suffix) &&
@@ -1103,7 +1104,7 @@ oidc_cred_collect_finished_cb (void *cls)
1103 handle->attr_userinfo_list); 1104 handle->attr_userinfo_list);
1104 for (le_m = merged_list->list_head; NULL != le_m; le_m = le_m->next) 1105 for (le_m = merged_list->list_head; NULL != le_m; le_m = le_m->next)
1105 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1106 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1106 "List Attibute in ticket to issue: %s\n", 1107 "List Attribute in ticket to issue: %s\n",
1107 le_m->attribute->name); 1108 le_m->attribute->name);
1108 handle->idp_op = GNUNET_RECLAIM_ticket_issue (idp, 1109 handle->idp_op = GNUNET_RECLAIM_ticket_issue (idp,
1109 &handle->priv_key, 1110 &handle->priv_key,
@@ -1387,7 +1388,8 @@ build_redirect (void *cls)
1387 } 1388 }
1388 resp = GNUNET_REST_create_response (""); 1389 resp = GNUNET_REST_create_response ("");
1389 GNUNET_assert (MHD_NO != MHD_add_response_header (resp, 1390 GNUNET_assert (MHD_NO != MHD_add_response_header (resp,
1390 "Location", redirect_uri)); 1391 "Location",
1392 redirect_uri));
1391 handle->proc (handle->proc_cls, resp, MHD_HTTP_FOUND); 1393 handle->proc (handle->proc_cls, resp, MHD_HTTP_FOUND);
1392 cleanup_handle (handle); 1394 cleanup_handle (handle);
1393 GNUNET_free (redirect_uri); 1395 GNUNET_free (redirect_uri);
@@ -2192,7 +2194,7 @@ token_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
2192 &cache_key, 2194 &cache_key,
2193 code, 2195 code,
2194 GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE); 2196 GNUNET_CONTAINER_MULTIHASHMAPOPTION_REPLACE);
2195 /* If there was a previus code in there, free the old value */ 2197 /* If there was a previous code in there, free the old value */
2196 if (NULL != tmp_at) 2198 if (NULL != tmp_at)
2197 { 2199 {
2198 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 2200 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -2231,7 +2233,7 @@ static void
2231consume_ticket (void *cls, 2233consume_ticket (void *cls,
2232 const struct GNUNET_IDENTITY_PublicKey *identity, 2234 const struct GNUNET_IDENTITY_PublicKey *identity,
2233 const struct GNUNET_RECLAIM_Attribute *attr, 2235 const struct GNUNET_RECLAIM_Attribute *attr,
2234 const struct GNUNET_RECLAIM_Presentation *pres) 2236 const struct GNUNET_RECLAIM_Presentation *presentation)
2235{ 2237{
2236 struct RequestHandle *handle = cls; 2238 struct RequestHandle *handle = cls;
2237 struct GNUNET_RECLAIM_AttributeListEntry *ale; 2239 struct GNUNET_RECLAIM_AttributeListEntry *ale;
@@ -2268,14 +2270,14 @@ consume_ticket (void *cls,
2268 GNUNET_CONTAINER_DLL_insert (handle->attr_userinfo_list->list_head, 2270 GNUNET_CONTAINER_DLL_insert (handle->attr_userinfo_list->list_head,
2269 handle->attr_userinfo_list->list_tail, 2271 handle->attr_userinfo_list->list_tail,
2270 ale); 2272 ale);
2271 if (NULL == pres) 2273 if (NULL == presentation)
2272 return; 2274 return;
2273 for (atle = handle->presentations->list_head; 2275 for (atle = handle->presentations->list_head;
2274 NULL != atle; atle = atle->next) 2276 NULL != atle; atle = atle->next)
2275 { 2277 {
2276 if (GNUNET_NO == GNUNET_RECLAIM_id_is_equal ( 2278 if (GNUNET_NO == GNUNET_RECLAIM_id_is_equal (
2277 &atle->presentation->credential_id, 2279 &atle->presentation->credential_id,
2278 &pres->credential_id)) 2280 &presentation->credential_id))
2279 continue; 2281 continue;
2280 break; /** already in list **/ 2282 break; /** already in list **/
2281 } 2283 }
@@ -2283,10 +2285,11 @@ consume_ticket (void *cls,
2283 { 2285 {
2284 /** Credential matches for attribute, add **/ 2286 /** Credential matches for attribute, add **/
2285 atle = GNUNET_new (struct GNUNET_RECLAIM_PresentationListEntry); 2287 atle = GNUNET_new (struct GNUNET_RECLAIM_PresentationListEntry);
2286 atle->presentation = GNUNET_RECLAIM_presentation_new (pres->type, 2288 atle->presentation = GNUNET_RECLAIM_presentation_new (presentation->type,
2287 pres->data, 2289 presentation->data,
2288 pres->data_size); 2290 presentation->
2289 atle->presentation->credential_id = pres->credential_id; 2291 data_size);
2292 atle->presentation->credential_id = presentation->credential_id;
2290 GNUNET_CONTAINER_DLL_insert (handle->presentations->list_head, 2293 GNUNET_CONTAINER_DLL_insert (handle->presentations->list_head,
2291 handle->presentations->list_tail, 2294 handle->presentations->list_tail,
2292 atle); 2295 atle);
@@ -2643,7 +2646,7 @@ oidc_config_endpoint (struct GNUNET_REST_RequestHandle *con_handle,
2643 response_types); 2646 response_types);
2644 sub_types = json_array (); 2647 sub_types = json_array ();
2645 json_array_append_new (sub_types, 2648 json_array_append_new (sub_types,
2646 json_string ("public")); /* no pairwise suppport */ 2649 json_string ("public")); /* no pairwise support */
2647 json_object_set_new (oidc_config, 2650 json_object_set_new (oidc_config,
2648 "subject_types_supported", 2651 "subject_types_supported",
2649 sub_types); 2652 sub_types);
diff --git a/src/reclaim/plugin_rest_pabc.c b/src/reclaim/plugin_rest_pabc.c
index 6603fb888..a0551f215 100644
--- a/src/reclaim/plugin_rest_pabc.c
+++ b/src/reclaim/plugin_rest_pabc.c
@@ -112,7 +112,7 @@ struct RequestHandle
112 char *emsg; 112 char *emsg;
113 113
114 /** 114 /**
115 * Reponse code 115 * Response code
116 */ 116 */
117 int response_code; 117 int response_code;
118 118
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c
index 1d1231cbd..80d6ca976 100644
--- a/src/reclaim/plugin_rest_reclaim.c
+++ b/src/reclaim/plugin_rest_reclaim.c
@@ -245,7 +245,7 @@ struct RequestHandle
245 char *emsg; 245 char *emsg;
246 246
247 /** 247 /**
248 * Reponse code 248 * Response code
249 */ 249 */
250 int response_code; 250 int response_code;
251 251
@@ -1200,7 +1200,7 @@ static void
1200consume_cont (void *cls, 1200consume_cont (void *cls,
1201 const struct GNUNET_IDENTITY_PublicKey *identity, 1201 const struct GNUNET_IDENTITY_PublicKey *identity,
1202 const struct GNUNET_RECLAIM_Attribute *attr, 1202 const struct GNUNET_RECLAIM_Attribute *attr,
1203 const struct GNUNET_RECLAIM_Presentation *pres) 1203 const struct GNUNET_RECLAIM_Presentation *presentation)
1204{ 1204{
1205 struct RequestHandle *handle = cls; 1205 struct RequestHandle *handle = cls;
1206 char *val_str; 1206 char *val_str;
diff --git a/src/reclaim/reclaim_api.c b/src/reclaim/reclaim_api.c
index c08cc868c..f41473f9f 100644
--- a/src/reclaim/reclaim_api.c
+++ b/src/reclaim/reclaim_api.c
@@ -907,7 +907,7 @@ handle_ticket_result (void *cls, const struct TicketResultMessage *msg)
907 struct GNUNET_RECLAIM_Handle *handle = cls; 907 struct GNUNET_RECLAIM_Handle *handle = cls;
908 struct GNUNET_RECLAIM_Operation *op; 908 struct GNUNET_RECLAIM_Operation *op;
909 struct GNUNET_RECLAIM_TicketIterator *it; 909 struct GNUNET_RECLAIM_TicketIterator *it;
910 struct GNUNET_RECLAIM_PresentationList *pres; 910 struct GNUNET_RECLAIM_PresentationList *presentation;
911 uint32_t r_id = ntohl (msg->id); 911 uint32_t r_id = ntohl (msg->id);
912 static const struct GNUNET_RECLAIM_Ticket ticket; 912 static const struct GNUNET_RECLAIM_Ticket ticket;
913 uint32_t pres_len = ntohs (msg->presentations_len); 913 uint32_t pres_len = ntohs (msg->presentations_len);
@@ -923,8 +923,9 @@ handle_ticket_result (void *cls, const struct TicketResultMessage *msg)
923 if (NULL != op) 923 if (NULL != op)
924 { 924 {
925 if (0 < pres_len) 925 if (0 < pres_len)
926 pres = GNUNET_RECLAIM_presentation_list_deserialize ((char*) &msg[1], 926 presentation = GNUNET_RECLAIM_presentation_list_deserialize (
927 pres_len); 927 (char*) &msg[1],
928 pres_len);
928 GNUNET_CONTAINER_DLL_remove (handle->op_head, handle->op_tail, op); 929 GNUNET_CONTAINER_DLL_remove (handle->op_head, handle->op_tail, op);
929 if (0 == 930 if (0 ==
930 memcmp (&msg->ticket, &ticket, sizeof(struct GNUNET_RECLAIM_Ticket))) 931 memcmp (&msg->ticket, &ticket, sizeof(struct GNUNET_RECLAIM_Ticket)))
@@ -937,10 +938,10 @@ handle_ticket_result (void *cls, const struct TicketResultMessage *msg)
937 if (NULL != op->ti_cb) 938 if (NULL != op->ti_cb)
938 op->ti_cb (op->cls, 939 op->ti_cb (op->cls,
939 &msg->ticket, 940 &msg->ticket,
940 (0 < pres_len) ? pres : NULL); 941 (0 < pres_len) ? presentation : NULL);
941 } 942 }
942 if (0 < pres_len) 943 if (0 < pres_len)
943 GNUNET_RECLAIM_presentation_list_destroy (pres); 944 GNUNET_RECLAIM_presentation_list_destroy (presentation);
944 free_op (op); 945 free_op (op);
945 return; 946 return;
946 } 947 }
diff --git a/src/reclaim/reclaim_credential.c b/src/reclaim/reclaim_credential.c
index da5cee988..b4aeedf29 100644
--- a/src/reclaim/reclaim_credential.c
+++ b/src/reclaim/reclaim_credential.c
@@ -135,7 +135,6 @@ RECLAIM_CREDENTIAL_fini ()
135} 135}
136 136
137 137
138
139/** 138/**
140 * Convert an credential type name to the corresponding number 139 * Convert an credential type name to the corresponding number
141 * 140 *
@@ -1030,6 +1029,7 @@ GNUNET_RECLAIM_presentation_get_expiration (const struct
1030 return GNUNET_SYSERR; 1029 return GNUNET_SYSERR;
1031} 1030}
1032 1031
1032
1033/** 1033/**
1034 * Create a presentation from a credential and a lift of (selected) 1034 * Create a presentation from a credential and a lift of (selected)
1035 * attributes in the credential. 1035 * attributes in the credential.
@@ -1042,9 +1042,9 @@ GNUNET_RECLAIM_presentation_get_expiration (const struct
1042 */ 1042 */
1043int 1043int
1044GNUNET_RECLAIM_credential_get_presentation ( 1044GNUNET_RECLAIM_credential_get_presentation (
1045 const struct GNUNET_RECLAIM_Credential *cred, 1045 const struct GNUNET_RECLAIM_Credential *cred,
1046 const struct GNUNET_RECLAIM_AttributeList *attrs, 1046 const struct GNUNET_RECLAIM_AttributeList *attrs,
1047 struct GNUNET_RECLAIM_Presentation **pres) 1047 struct GNUNET_RECLAIM_Presentation **presentation)
1048{ 1048{
1049 unsigned int i; 1049 unsigned int i;
1050 struct Plugin *plugin; 1050 struct Plugin *plugin;
@@ -1055,13 +1055,10 @@ GNUNET_RECLAIM_credential_get_presentation (
1055 if (GNUNET_OK != plugin->api->create_presentation (plugin->api->cls, 1055 if (GNUNET_OK != plugin->api->create_presentation (plugin->api->cls,
1056 cred, 1056 cred,
1057 attrs, 1057 attrs,
1058 pres)) 1058 presentation))
1059 continue; 1059 continue;
1060 (*pres)->credential_id = cred->id; 1060 (*presentation)->credential_id = cred->id;
1061 return GNUNET_OK; 1061 return GNUNET_OK;
1062 } 1062 }
1063 return GNUNET_SYSERR; 1063 return GNUNET_SYSERR;
1064} 1064}
1065
1066
1067
diff --git a/src/regex/gnunet-daemon-regexprofiler.c b/src/regex/gnunet-daemon-regexprofiler.c
index d94b5ae46..70301338f 100644
--- a/src/regex/gnunet-daemon-regexprofiler.c
+++ b/src/regex/gnunet-daemon-regexprofiler.c
@@ -21,7 +21,7 @@
21/** 21/**
22 * @file regex/gnunet-daemon-regexprofiler.c 22 * @file regex/gnunet-daemon-regexprofiler.c
23 * @brief daemon that uses cadet to announce a regular expression. Used in 23 * @brief daemon that uses cadet to announce a regular expression. Used in
24 * conjunction with gnunet-regex-profiler to announce regexes on serveral peers 24 * conjunction with gnunet-regex-profiler to announce regexes on several peers
25 * without the need to explicitly connect to the cadet service running on the 25 * without the need to explicitly connect to the cadet service running on the
26 * peer from within the profiler. 26 * peer from within the profiler.
27 * @author Maximilian Szengel 27 * @author Maximilian Szengel
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index e82e10e3b..90e06cf5f 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -173,7 +173,7 @@ struct RegexPeer
173 struct GNUNET_SCHEDULER_Task *timeout; 173 struct GNUNET_SCHEDULER_Task *timeout;
174 174
175 /** 175 /**
176 * Deamon start 176 * Daemon start
177 */ 177 */
178 struct GNUNET_TESTBED_Operation *daemon_op; 178 struct GNUNET_TESTBED_Operation *daemon_op;
179}; 179};
@@ -718,7 +718,7 @@ find_string (void *cls);
718 * @param cls Closure provided in REGEX_INTERNAL_search. 718 * @param cls Closure provided in REGEX_INTERNAL_search.
719 * @param id Peer providing a regex that matches the string. 719 * @param id Peer providing a regex that matches the string.
720 * @param get_path Path of the get request. 720 * @param get_path Path of the get request.
721 * @param get_path_length Lenght of get_path. 721 * @param get_path_length Length of get_path.
722 * @param put_path Path of the put request. 722 * @param put_path Path of the put request.
723 * @param put_path_length Length of the put_path. 723 * @param put_path_length Length of the put_path.
724 */ 724 */
@@ -936,7 +936,7 @@ daemon_started (void *cls,
936 else 936 else
937 { 937 {
938 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 938 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
939 "Deamon %u started successfully\n", peer->id); 939 "Daemon %u started successfully\n", peer->id);
940 } 940 }
941 941
942 /* Find a peer to look for a string matching the regex announced */ 942 /* Find a peer to look for a string matching the regex announced */
@@ -1027,7 +1027,7 @@ announce_next_regex (void *cls)
1027 1027
1028/** 1028/**
1029 * DHT connect callback. Called when we are connected to the dht service for 1029 * DHT connect callback. Called when we are connected to the dht service for
1030 * the peer in 'cls'. If successfull we connect to the stats service of this 1030 * the peer in 'cls'. If successful we connect to the stats service of this
1031 * peer and then try to match the search string of this peer. 1031 * peer and then try to match the search string of this peer.
1032 * 1032 *
1033 * @param cls internal peer id. 1033 * @param cls internal peer id.
diff --git a/src/regex/gnunet-regex-simulation-profiler.c b/src/regex/gnunet-regex-simulation-profiler.c
index 3d449a04e..ab6d65d58 100644
--- a/src/regex/gnunet-regex-simulation-profiler.c
+++ b/src/regex/gnunet-regex-simulation-profiler.c
@@ -60,7 +60,7 @@ struct ProgressMeter
60 unsigned int total; 60 unsigned int total;
61 61
62 /** 62 /**
63 * Intervall for printing percentage. 63 * Interval for printing percentage.
64 */ 64 */
65 unsigned int modnum; 65 unsigned int modnum;
66 66
diff --git a/src/regex/gnunet-service-regex.c b/src/regex/gnunet-service-regex.c
index 19250d427..7a5cc1f05 100644
--- a/src/regex/gnunet-service-regex.c
+++ b/src/regex/gnunet-service-regex.c
@@ -189,7 +189,7 @@ handle_announce (void *cls,
189 * @param cls the struct ClientEntry of the client searching 189 * @param cls the struct ClientEntry of the client searching
190 * @param id Peer providing a regex that matches the string. 190 * @param id Peer providing a regex that matches the string.
191 * @param get_path Path of the get request. 191 * @param get_path Path of the get request.
192 * @param get_path_length Lenght of @a get_path. 192 * @param get_path_length Length of @a get_path.
193 * @param put_path Path of the put request. 193 * @param put_path Path of the put request.
194 * @param put_path_length Length of the @a put_path. 194 * @param put_path_length Length of the @a put_path.
195 */ 195 */
diff --git a/src/regex/perf-regex.c b/src/regex/perf-regex.c
index 6155501f2..aea0c054f 100644
--- a/src/regex/perf-regex.c
+++ b/src/regex/perf-regex.c
@@ -63,7 +63,7 @@ print_edge (void *cls,
63 63
64 64
65/** 65/**
66 * The main function of the regex performace test. 66 * The main function of the regex performance test.
67 * 67 *
68 * Read a set of regex from a file, combine them and create a DFA from the 68 * Read a set of regex from a file, combine them and create a DFA from the
69 * resulting combined regex. 69 * resulting combined regex.
diff --git a/src/regex/plugin_block_regex.c b/src/regex/plugin_block_regex.c
index c087abae9..ad897493f 100644
--- a/src/regex/plugin_block_regex.c
+++ b/src/regex/plugin_block_regex.c
@@ -168,7 +168,7 @@ evaluate_block_regex (void *cls,
168 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; 168 return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
169 169
170 case GNUNET_NO: 170 case GNUNET_NO:
171 /* xquery missmatch, can happen */ 171 /* xquery mismatch, can happen */
172 return GNUNET_BLOCK_EVALUATION_RESULT_IRRELEVANT; 172 return GNUNET_BLOCK_EVALUATION_RESULT_IRRELEVANT;
173 173
174 default: 174 default:
diff --git a/src/regex/regex_block_lib.c b/src/regex/regex_block_lib.c
index 159e8bf8a..cbfb553ce 100644
--- a/src/regex/regex_block_lib.c
+++ b/src/regex/regex_block_lib.c
@@ -71,7 +71,7 @@ struct RegexBlock
71 uint16_t num_edges GNUNET_PACKED; 71 uint16_t num_edges GNUNET_PACKED;
72 72
73 /** 73 /**
74 * Nubmer of unique destinations reachable from this state. 74 * Number of unique destinations reachable from this state.
75 */ 75 */
76 uint16_t num_destinations GNUNET_PACKED; 76 uint16_t num_destinations GNUNET_PACKED;
77 77
@@ -158,7 +158,7 @@ struct CheckEdgeContext
158 * 158 *
159 * @param cls Closure, (xquery context). 159 * @param cls Closure, (xquery context).
160 * @param token Token that follows to next state. 160 * @param token Token that follows to next state.
161 * @param len Lenght of token. 161 * @param len Length of token.
162 * @param key Hash of next state. 162 * @param key Hash of next state.
163 * 163 *
164 * @return #GNUNET_YES, to keep iterating 164 * @return #GNUNET_YES, to keep iterating
diff --git a/src/regex/regex_internal.c b/src/regex/regex_internal.c
index cd33281e2..aa40851a9 100644
--- a/src/regex/regex_internal.c
+++ b/src/regex/regex_internal.c
@@ -1562,7 +1562,7 @@ automaton_create_proofs_simplify (const struct StringBuffer *R_last_ij,
1562 1562
1563/** 1563/**
1564 * Create proofs for all states in the given automaton. Implementation of the 1564 * Create proofs for all states in the given automaton. Implementation of the
1565 * algorithm descriped in chapter 3.2.1 of "Automata Theory, Languages, and 1565 * algorithm described in chapter 3.2.1 of "Automata Theory, Languages, and
1566 * Computation 3rd Edition" by Hopcroft, Motwani and Ullman. 1566 * Computation 3rd Edition" by Hopcroft, Motwani and Ullman.
1567 * 1567 *
1568 * Each state in the automaton gets assigned 'proof' and 'hash' (hash of the 1568 * Each state in the automaton gets assigned 'proof' and 'hash' (hash of the
@@ -1796,7 +1796,7 @@ dfa_state_create (struct REGEX_INTERNAL_Context *ctx,
1796 1796
1797/** 1797/**
1798 * Move from the given state 's' to the next state on transition 'str'. Consumes 1798 * Move from the given state 's' to the next state on transition 'str'. Consumes
1799 * as much of the given 'str' as possible (usefull for strided DFAs). On return 1799 * as much of the given 'str' as possible (useful for strided DFAs). On return
1800 * 's' will point to the next state, and the length of the substring used for 1800 * 's' will point to the next state, and the length of the substring used for
1801 * this transition will be returned. If no transition possible 0 is returned and 1801 * this transition will be returned. If no transition possible 0 is returned and
1802 * 's' points to NULL. 1802 * 's' points to NULL.
@@ -1805,7 +1805,7 @@ dfa_state_create (struct REGEX_INTERNAL_Context *ctx,
1805 * transition possible) 1805 * transition possible)
1806 * @param str edge label to follow (will match longest common prefix) 1806 * @param str edge label to follow (will match longest common prefix)
1807 * 1807 *
1808 * @return length of the substring comsumed from 'str' 1808 * @return length of the substring consumed from 'str'
1809 */ 1809 */
1810static unsigned int 1810static unsigned int
1811dfa_move (struct REGEX_INTERNAL_State **s, const char *str) 1811dfa_move (struct REGEX_INTERNAL_State **s, const char *str)
@@ -3055,7 +3055,7 @@ construct_dfa_states (struct REGEX_INTERNAL_Context *ctx,
3055 * @param len length of the regular expression. 3055 * @param len length of the regular expression.
3056 * @param max_path_len limit the path compression length to the 3056 * @param max_path_len limit the path compression length to the
3057 * given value. If set to 1, no path compression is applied. Set to 0 for 3057 * given value. If set to 1, no path compression is applied. Set to 0 for
3058 * maximal possible path compression (generally not desireable). 3058 * maximal possible path compression (generally not desirable).
3059 * @return DFA, needs to be freed using REGEX_INTERNAL_automaton_destroy. 3059 * @return DFA, needs to be freed using REGEX_INTERNAL_automaton_destroy.
3060 */ 3060 */
3061struct REGEX_INTERNAL_Automaton * 3061struct REGEX_INTERNAL_Automaton *
@@ -3525,7 +3525,7 @@ REGEX_INTERNAL_iterate_all_edges (struct REGEX_INTERNAL_Automaton *a,
3525/** 3525/**
3526 * Struct to hold all the relevant state information in the HashMap. 3526 * Struct to hold all the relevant state information in the HashMap.
3527 * 3527 *
3528 * Contains the same info as the Regex Iterator parametes except the key, 3528 * Contains the same info as the Regex Iterator parameters except the key,
3529 * which comes directly from the HashMap iterator. 3529 * which comes directly from the HashMap iterator.
3530 */ 3530 */
3531struct temporal_state_store 3531struct temporal_state_store
diff --git a/src/regex/regex_internal_dht.c b/src/regex/regex_internal_dht.c
index 39d7cd847..3fb74c319 100644
--- a/src/regex/regex_internal_dht.c
+++ b/src/regex/regex_internal_dht.c
@@ -254,7 +254,7 @@ REGEX_INTERNAL_announce_cancel (struct REGEX_INTERNAL_Announcement *h)
254 254
255/** 255/**
256 * Struct to keep state of running searches that have consumed a part of 256 * Struct to keep state of running searches that have consumed a part of
257 * the inital string. 257 * the initial string.
258 */ 258 */
259struct RegexSearchContext 259struct RegexSearchContext
260{ 260{
@@ -374,7 +374,7 @@ regex_next_edge (const struct RegexBlock *block,
374 * @param exp When will this value expire. 374 * @param exp When will this value expire.
375 * @param key Key of the result. 375 * @param key Key of the result.
376 * @param get_path Path of the get request. 376 * @param get_path Path of the get request.
377 * @param get_path_length Lenght of get_path. 377 * @param get_path_length Length of get_path.
378 * @param put_path Path of the put request. 378 * @param put_path Path of the put request.
379 * @param put_path_length Length of the put_path. 379 * @param put_path_length Length of the put_path.
380 * @param type Type of the result. 380 * @param type Type of the result.
@@ -551,7 +551,7 @@ regex_result_iterator (void *cls,
551 * 551 *
552 * @param cls Closure (context of the search). 552 * @param cls Closure (context of the search).
553 * @param token Token that follows to next state. 553 * @param token Token that follows to next state.
554 * @param len Lenght of token. 554 * @param len Length of token.
555 * @param key Hash of next state. 555 * @param key Hash of next state.
556 * @return #GNUNET_YES if should keep iterating, #GNUNET_NO otherwise. 556 * @return #GNUNET_YES if should keep iterating, #GNUNET_NO otherwise.
557 */ 557 */
diff --git a/src/regex/regex_test_lib.c b/src/regex/regex_test_lib.c
index 58cd8dc10..f8d3f993f 100644
--- a/src/regex/regex_test_lib.c
+++ b/src/regex/regex_test_lib.c
@@ -137,7 +137,7 @@ debugctx (struct RegexCombineCtx *ctx, int level)
137 137
138 138
139/** 139/**
140 * Add a single regex to a context, combining with exisiting regex by-prefix. 140 * Add a single regex to a context, combining with existing regex by-prefix.
141 * 141 *
142 * @param ctx Context with 0 or more regexes. 142 * @param ctx Context with 0 or more regexes.
143 * @param regex Regex to add. 143 * @param regex Regex to add.
@@ -378,14 +378,14 @@ regex_add_multiple (struct RegexCombineCtx *ctx,
378 378
379 379
380/** 380/**
381 * Add a single regex to a context, splitting the exisiting state. 381 * Add a single regex to a context, splitting the existing state.
382 * 382 *
383 * We only had a partial match, split existing state, truncate the current node 383 * We only had a partial match, split existing state, truncate the current node
384 * so it only contains the prefix, add suffix(es) as children. 384 * so it only contains the prefix, add suffix(es) as children.
385 * 385 *
386 * @param ctx Context to split. 386 * @param ctx Context to split.
387 * @param len Lenght of ctx->s 387 * @param len Length of ctx->s
388 * @param prefix_l Lenght of common prefix of the new regex and @a ctx->s 388 * @param prefix_l Length of common prefix of the new regex and @a ctx->s
389 */ 389 */
390static void 390static void
391regex_split (struct RegexCombineCtx *ctx, 391regex_split (struct RegexCombineCtx *ctx,
@@ -431,7 +431,7 @@ regex_split (struct RegexCombineCtx *ctx,
431 431
432 432
433/** 433/**
434 * Add a single regex to a context, combining with exisiting regex by-prefix. 434 * Add a single regex to a context, combining with existing regex by-prefix.
435 * 435 *
436 * @param ctx Context with 0 or more regexes. 436 * @param ctx Context with 0 or more regexes.
437 * @param regex Regex to add. 437 * @param regex Regex to add.
diff --git a/src/regex/regex_test_random.c b/src/regex/regex_test_random.c
index 02d59f5dc..823563d4d 100644
--- a/src/regex/regex_test_random.c
+++ b/src/regex/regex_test_random.c
@@ -55,7 +55,7 @@ get_random_literal ()
55 * @param matching_str (optional) pointer to a string that will contain a string 55 * @param matching_str (optional) pointer to a string that will contain a string
56 * that will be matched by the generated regex, if 56 * that will be matched by the generated regex, if
57 * 'matching_str' pointer was not NULL. Make sure you 57 * 'matching_str' pointer was not NULL. Make sure you
58 * allocated at least rx_length+1 bytes for this sting. 58 * allocated at least rx_length+1 bytes for this string.
59 * 59 *
60 * @return NULL if 'rx_length' is 0, a random regex of length 'rx_length', which 60 * @return NULL if 'rx_length' is 0, a random regex of length 'rx_length', which
61 * needs to be freed, otherwise. 61 * needs to be freed, otherwise.
diff --git a/src/regex/test_regex_api.c b/src/regex/test_regex_api.c
index 734fbdbf3..9761e80f9 100644
--- a/src/regex/test_regex_api.c
+++ b/src/regex/test_regex_api.c
@@ -80,7 +80,7 @@ end_badly ()
80 * @param cls Closure provided in GNUNET_REGEX_search. 80 * @param cls Closure provided in GNUNET_REGEX_search.
81 * @param id Peer providing a regex that matches the string. 81 * @param id Peer providing a regex that matches the string.
82 * @param get_path Path of the get request. 82 * @param get_path Path of the get request.
83 * @param get_path_length Lenght of get_path. 83 * @param get_path_length Length of get_path.
84 * @param put_path Path of the put request. 84 * @param put_path Path of the put request.
85 * @param put_path_length Length of the put_path. 85 * @param put_path_length Length of the put_path.
86 */ 86 */
diff --git a/src/regex/test_regex_eval_api.c b/src/regex/test_regex_eval_api.c
index 7cd081269..be3649dbd 100644
--- a/src/regex/test_regex_eval_api.c
+++ b/src/regex/test_regex_eval_api.c
@@ -195,7 +195,7 @@ error:
195 * @param rxstr regular expression and strings with expected results to 195 * @param rxstr regular expression and strings with expected results to
196 * match against. 196 * match against.
197 * 197 *
198 * @return 0 on successfull, non 0 otherwise 198 * @return 0 on successful, non 0 otherwise
199 */ 199 */
200int 200int
201test_automaton (struct REGEX_INTERNAL_Automaton *a, regex_t *rx, 201test_automaton (struct REGEX_INTERNAL_Automaton *a, regex_t *rx,
diff --git a/src/regex/test_regex_proofs.c b/src/regex/test_regex_proofs.c
index 8908084b0..289b1183b 100644
--- a/src/regex/test_regex_proofs.c
+++ b/src/regex/test_regex_proofs.c
@@ -78,7 +78,7 @@ test_proof (const char *regex)
78 * @param count number of random regular expressions to test. 78 * @param count number of random regular expressions to test.
79 * @param rx_length length of the random regular expressions. 79 * @param rx_length length of the random regular expressions.
80 * 80 *
81 * @return 0 on succes, number of failures otherwise. 81 * @return 0 on success, number of failures otherwise.
82 */ 82 */
83static unsigned int 83static unsigned int
84test_proofs_random (unsigned int count, size_t rx_length) 84test_proofs_random (unsigned int count, size_t rx_length)
diff --git a/src/rest/rest.c b/src/rest/rest.c
index 0b86530f9..930f66243 100644
--- a/src/rest/rest.c
+++ b/src/rest/rest.c
@@ -38,7 +38,7 @@
38 * 38 *
39 * @param url URL to check 39 * @param url URL to check
40 * @param namespace namespace to check against 40 * @param namespace namespace to check against
41 * @retun GNUNET_YES if namespace matches 41 * @return GNUNET_YES if namespace matches
42 */ 42 */
43int 43int
44GNUNET_REST_namespace_match (const char *url, const char *namespace) 44GNUNET_REST_namespace_match (const char *url, const char *namespace)
@@ -51,7 +51,7 @@ GNUNET_REST_namespace_match (const char *url, const char *namespace)
51 * Create MHD response 51 * Create MHD response
52 * 52 *
53 * @param data result 53 * @param data result
54 * @retun MHD response 54 * @return MHD response
55 */ 55 */
56struct MHD_Response* 56struct MHD_Response*
57GNUNET_REST_create_response (const char *data) 57GNUNET_REST_create_response (const char *data)
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index 908dcca17..6d1236f08 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -44,7 +44,7 @@
44static uint32_t num_peers; 44static uint32_t num_peers;
45 45
46/** 46/**
47 * @brief numer of bits required to represent the largest peer id 47 * @brief number of bits required to represent the largest peer id
48 */ 48 */
49static unsigned bits_needed; 49static unsigned bits_needed;
50 50
@@ -127,7 +127,7 @@ static char*stat_type_strings[] = {
127 "# pushes sent", 127 "# pushes sent",
128 "# pull requests sent", 128 "# pull requests sent",
129 "# pull requests sent (multi-hop peer)", 129 "# pull requests sent (multi-hop peer)",
130 "# pull replys sent", 130 "# pull replies sent",
131 "# push message received", 131 "# push message received",
132 "# push message received (multi-hop peer)", 132 "# push message received (multi-hop peer)",
133 "# pull request message received", 133 "# pull request message received",
@@ -1173,7 +1173,7 @@ trigger_shutdown (void *cls)
1173 (void) cls; 1173 (void) cls;
1174 1174
1175 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1175 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1176 "Shutdown was triggerd by timeout, going down.\n"); 1176 "Shutdown was triggered by timeout, going down.\n");
1177 shutdown_task = NULL; 1177 shutdown_task = NULL;
1178 GNUNET_SCHEDULER_shutdown (); 1178 GNUNET_SCHEDULER_shutdown ();
1179} 1179}
@@ -2091,7 +2091,7 @@ profiler_cb (struct RPSPeer *rps_peer)
2091 } 2091 }
2092 2092
2093 /* Only request peer ids at one peer. 2093 /* Only request peer ids at one peer.
2094 * (It's the before-last because last one is target of the focussed attack.) 2094 * (It's the before-last because last one is target of the focused attack.)
2095 */ 2095 */
2096 if (0 < rps_peer->num_ids_to_request) 2096 if (0 < rps_peer->num_ids_to_request)
2097 schedule_missing_requests (rps_peer); 2097 schedule_missing_requests (rps_peer);
@@ -2468,7 +2468,7 @@ void
2468compute_diversity () 2468compute_diversity ()
2469{ 2469{
2470 uint32_t i; 2470 uint32_t i;
2471 /* ith entry represents the numer of occurrences in other peer's views */ 2471 /* ith entry represents the number of occurrences in other peer's views */
2472 uint32_t *count_peers = GNUNET_new_array (num_peers, uint32_t); 2472 uint32_t *count_peers = GNUNET_new_array (num_peers, uint32_t);
2473 uint32_t views_total_size; 2473 uint32_t views_total_size;
2474 double expected; 2474 double expected;
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index 56eab288e..f6fcf3ae7 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -569,7 +569,7 @@ static struct GNUNET_PeerIdentity attacked_peer;
569 * This is an assumption of the Brahms protocol and either implemented 569 * This is an assumption of the Brahms protocol and either implemented
570 * via proof of work 570 * via proof of work
571 * or 571 * or
572 * assumend to be the bandwidth limitation. 572 * assumed to be the bandwidth limitation.
573 */ 573 */
574static uint32_t push_limit = 10000; 574static uint32_t push_limit = 10000;
575#endif /* ENABLE_MALICIOUS */ 575#endif /* ENABLE_MALICIOUS */
@@ -599,6 +599,7 @@ do_round (void *cls);
599#if ENABLE_MALICIOUS 599#if ENABLE_MALICIOUS
600static void 600static void
601do_mal_round (void *cls); 601do_mal_round (void *cls);
602
602#endif /* ENABLE_MALICIOUS */ 603#endif /* ENABLE_MALICIOUS */
603 604
604 605
@@ -634,7 +635,7 @@ get_peer_ctx (const struct GNUNET_CONTAINER_MultiPeerMap *peer_map,
634 * @param peer peer in question 635 * @param peer peer in question
635 * 636 *
636 * @return #GNUNET_YES if peer is known 637 * @return #GNUNET_YES if peer is known
637 * #GNUNET_NO if peer is not knwon 638 * #GNUNET_NO if peer is not known
638 */ 639 */
639static int 640static int
640check_peer_known (const struct GNUNET_CONTAINER_MultiPeerMap *peer_map, 641check_peer_known (const struct GNUNET_CONTAINER_MultiPeerMap *peer_map,
@@ -1036,9 +1037,9 @@ get_channel (struct PeerContext *peer_ctx)
1036 * Get the message queue (#GNUNET_MQ_Handle) of a specific peer. 1037 * Get the message queue (#GNUNET_MQ_Handle) of a specific peer.
1037 * 1038 *
1038 * If we already have a message queue open to this client, 1039 * If we already have a message queue open to this client,
1039 * simply return it, otherways create one. 1040 * simply return it, otherwise create one.
1040 * 1041 *
1041 * @param peer_ctx Context of the peer of whicht to get the mq 1042 * @param peer_ctx Context of the peer of which to get the mq
1042 * @return the #GNUNET_MQ_Handle 1043 * @return the #GNUNET_MQ_Handle
1043 */ 1044 */
1044static struct GNUNET_MQ_Handle * 1045static struct GNUNET_MQ_Handle *
@@ -1119,7 +1120,7 @@ mq_online_check_successful (void *cls)
1119 if (NULL != peer_ctx->online_check_pending) 1120 if (NULL != peer_ctx->online_check_pending)
1120 { 1121 {
1121 LOG (GNUNET_ERROR_TYPE_DEBUG, 1122 LOG (GNUNET_ERROR_TYPE_DEBUG,
1122 "Online check for peer %s was successfull\n", 1123 "Online check for peer %s was successful\n",
1123 GNUNET_i2s (&peer_ctx->peer_id)); 1124 GNUNET_i2s (&peer_ctx->peer_id));
1124 remove_pending_message (peer_ctx->online_check_pending, GNUNET_YES); 1125 remove_pending_message (peer_ctx->online_check_pending, GNUNET_YES);
1125 peer_ctx->online_check_pending = NULL; 1126 peer_ctx->online_check_pending = NULL;
@@ -1292,7 +1293,7 @@ destroy_peer (struct PeerContext *peer_ctx)
1292 LOG (GNUNET_ERROR_TYPE_DEBUG, 1293 LOG (GNUNET_ERROR_TYPE_DEBUG,
1293 "Removing unsent %s\n", 1294 "Removing unsent %s\n",
1294 peer_ctx->pending_messages_head->type); 1295 peer_ctx->pending_messages_head->type);
1295 /* Cancle pending message, too */ 1296 /* Cancel pending message, too */
1296 if ((NULL != peer_ctx->online_check_pending) && 1297 if ((NULL != peer_ctx->online_check_pending) &&
1297 (0 == memcmp (peer_ctx->pending_messages_head, 1298 (0 == memcmp (peer_ctx->pending_messages_head,
1298 peer_ctx->online_check_pending, 1299 peer_ctx->online_check_pending,
@@ -1402,7 +1403,7 @@ mq_notify_sent_cb (void *cls)
1402 if (pending_msg->peer_ctx->sub == msub) 1403 if (pending_msg->peer_ctx->sub == msub)
1403 { 1404 {
1404 if (0 == strncmp ("PULL REPLY", pending_msg->type, 10)) 1405 if (0 == strncmp ("PULL REPLY", pending_msg->type, 10))
1405 GNUNET_STATISTICS_update (stats, "# pull replys sent", 1, GNUNET_NO); 1406 GNUNET_STATISTICS_update (stats, "# pull replies sent", 1, GNUNET_NO);
1406 if (0 == strncmp ("PULL REQUEST", pending_msg->type, 12)) 1407 if (0 == strncmp ("PULL REQUEST", pending_msg->type, 12))
1407 GNUNET_STATISTICS_update (stats, "# pull requests sent", 1, GNUNET_NO); 1408 GNUNET_STATISTICS_update (stats, "# pull requests sent", 1, GNUNET_NO);
1408 if (0 == strncmp ("PUSH", pending_msg->type, 4)) 1409 if (0 == strncmp ("PUSH", pending_msg->type, 4))
@@ -1417,7 +1418,7 @@ mq_notify_sent_cb (void *cls)
1417 1, 1418 1,
1418 GNUNET_NO); 1419 GNUNET_NO);
1419 } 1420 }
1420 /* Do not cancle message */ 1421 /* Do not cancel message */
1421 remove_pending_message (pending_msg, GNUNET_NO); 1422 remove_pending_message (pending_msg, GNUNET_NO);
1422} 1423}
1423 1424
@@ -1544,7 +1545,7 @@ s2i_full (const char *string_repr)
1544 { 1545 {
1545 LOG (GNUNET_ERROR_TYPE_WARNING, 1546 LOG (GNUNET_ERROR_TYPE_WARNING,
1546 "Not able to convert string representation of PeerID to PeerID\n" 1547 "Not able to convert string representation of PeerID to PeerID\n"
1547 "Sting representation: %s (len %lu) - too short\n", 1548 "String representation: %s (len %lu) - too short\n",
1548 string_repr, 1549 string_repr,
1549 len); 1550 len);
1550 GNUNET_break (0); 1551 GNUNET_break (0);
@@ -1560,7 +1561,7 @@ s2i_full (const char *string_repr)
1560 { 1561 {
1561 LOG (GNUNET_ERROR_TYPE_WARNING, 1562 LOG (GNUNET_ERROR_TYPE_WARNING,
1562 "Not able to convert string representation of PeerID to PeerID\n" 1563 "Not able to convert string representation of PeerID to PeerID\n"
1563 "Sting representation: %s\n", 1564 "String representation: %s\n",
1564 string_repr); 1565 string_repr);
1565 GNUNET_break (0); 1566 GNUNET_break (0);
1566 } 1567 }
@@ -2428,7 +2429,7 @@ hist_update (const struct GNUNET_PeerIdentity *ids,
2428 } 2429 }
2429#ifdef TO_FILE_FULL 2430#ifdef TO_FILE_FULL
2430 to_file (sub->file_name_view_log, 2431 to_file (sub->file_name_view_log,
2431 "+%s\t(hist)", 2432 "+%s\t(history)",
2432 GNUNET_i2s_full (ids)); 2433 GNUNET_i2s_full (ids));
2433#endif /* TO_FILE_FULL */ 2434#endif /* TO_FILE_FULL */
2434 } 2435 }
@@ -2502,6 +2503,8 @@ add_peer_array_to_set (const struct GNUNET_PeerIdentity *peer_array,
2502 } 2503 }
2503 } 2504 }
2504} 2505}
2506
2507
2505#endif /* ENABLE_MALICIOUS */ 2508#endif /* ENABLE_MALICIOUS */
2506 2509
2507 2510
@@ -2845,7 +2848,7 @@ cleanup_destroyed_channel (void *cls,
2845 else 2848 else
2846 { 2849 {
2847 /* We need this if-else construct because we need to make sure the channel 2850 /* We need this if-else construct because we need to make sure the channel
2848 * (context) is cleaned up before removing the peer, but still neet to 2851 * (context) is cleaned up before removing the peer, but still need to
2849 * compare it while checking the condition */ 2852 * compare it while checking the condition */
2850 remove_channel_ctx (channel_ctx); 2853 remove_channel_ctx (channel_ctx);
2851 } 2854 }
@@ -2998,7 +3001,7 @@ new_sub (const struct GNUNET_HashCode *hash,
2998// /** 3001// /**
2999// * @brief Write all numbers in the given array into the given file 3002// * @brief Write all numbers in the given array into the given file
3000// * 3003// *
3001// * Single numbers devided by a newline 3004// * Single numbers divided by a newline
3002// * 3005// *
3003// * FIXME: The call to store_prefix_file_name expects the index of the peer, 3006// * FIXME: The call to store_prefix_file_name expects the index of the peer,
3004// * which cannot be known to the service. 3007// * which cannot be known to the service.
@@ -3014,14 +3017,14 @@ new_sub (const struct GNUNET_HashCode *hash,
3014// char collect_str[SIZE_DUMP_FILE + 1] = ""; 3017// char collect_str[SIZE_DUMP_FILE + 1] = "";
3015// char *recv_str_iter; 3018// char *recv_str_iter;
3016// char *file_name_full; 3019// char *file_name_full;
3017// 3020//
3018// recv_str_iter = collect_str; 3021// recv_str_iter = collect_str;
3019// file_name_full = store_prefix_file_name (&own_identity, 3022// file_name_full = store_prefix_file_name (&own_identity,
3020// file_name); 3023// file_name);
3021// for (uint32_t i = 0; i < HISTOGRAM_FILE_SLOTS; i++) 3024// for (uint32_t i = 0; i < HISTOGRAM_FILE_SLOTS; i++)
3022// { 3025// {
3023// char collect_str_tmp[8]; 3026// char collect_str_tmp[8];
3024// 3027//
3025// GNUNET_snprintf (collect_str_tmp, 3028// GNUNET_snprintf (collect_str_tmp,
3026// sizeof(collect_str_tmp), 3029// sizeof(collect_str_tmp),
3027// "%" PRIu32 "\n", 3030// "%" PRIu32 "\n",
@@ -3213,7 +3216,7 @@ adapt_sizes (struct Sub *sub, double logestimate, double std_dev)
3213{ 3216{
3214 double estimate; 3217 double estimate;
3215 3218
3216 // double scale; // TODO this might go gloabal/config 3219 // double scale; // TODO this might go global/config
3217 3220
3218 LOG (GNUNET_ERROR_TYPE_DEBUG, 3221 LOG (GNUNET_ERROR_TYPE_DEBUG,
3219 "Received a ns estimate - logest: %f, std_dev: %f (old_size: %u)\n", 3222 "Received a ns estimate - logest: %f, std_dev: %f (old_size: %u)\n",
@@ -3359,7 +3362,7 @@ handle_client_seed (void *cls,
3359 * Handle RPS request from the client. 3362 * Handle RPS request from the client.
3360 * 3363 *
3361 * @param cls Client context 3364 * @param cls Client context
3362 * @param message Message containing the numer of updates the client wants to 3365 * @param message Message containing the number of updates the client wants to
3363 * receive 3366 * receive
3364 */ 3367 */
3365static void 3368static void
diff --git a/src/rps/gnunet-service-rps_custommap.c b/src/rps/gnunet-service-rps_custommap.c
index 392c29397..b1e73be17 100644
--- a/src/rps/gnunet-service-rps_custommap.c
+++ b/src/rps/gnunet-service-rps_custommap.c
@@ -48,10 +48,10 @@
48 * 48 *
49 * This list is expected to 49 * This list is expected to
50 * - be altered in small steps frequently 50 * - be altered in small steps frequently
51 * - be cleared regularily 51 * - be cleared regularly
52 * - often being queried whether a peer is contained 52 * - often being queried whether a peer is contained
53 * - alter indices of peers 53 * - alter indices of peers
54 * - contain continous indices 0 <= i < len 54 * - contain continuous indices 0 <= i < len
55 * - not contain duplicate peers 55 * - not contain duplicate peers
56 */ 56 */
57struct CustomPeerMap 57struct CustomPeerMap
diff --git a/src/rps/rps-sampler_common.c b/src/rps/rps-sampler_common.c
index 488ed8e01..a30ba06a1 100644
--- a/src/rps/rps-sampler_common.c
+++ b/src/rps/rps-sampler_common.c
@@ -661,7 +661,7 @@ RPS_sampler_get_rand_peer_info (struct RPS_Sampler *sampler,
661 661
662 662
663/** 663/**
664 * Cancle a request issued through #RPS_sampler_n_rand_peers_ready_cb. 664 * Cancel a request issued through #RPS_sampler_n_rand_peers_ready_cb.
665 * 665 *
666 * @param req_handle the handle to the request 666 * @param req_handle the handle to the request
667 */ 667 */
@@ -699,7 +699,7 @@ RPS_sampler_request_cancel (struct RPS_SamplerRequestHandle *req_handle)
699 699
700 700
701/** 701/**
702 * Cancle a request issued through #RPS_sampler_sinlge_info_ready_cb. 702 * Cancel a request issued through #RPS_sampler_sinlge_info_ready_cb.
703 * 703 *
704 * @param req_handle the handle to the request 704 * @param req_handle the handle to the request
705 */ 705 */
diff --git a/src/rps/rps-test_util.c b/src/rps/rps-test_util.c
index 6dee20c95..8fd82f7b3 100644
--- a/src/rps/rps-test_util.c
+++ b/src/rps/rps-test_util.c
@@ -20,7 +20,7 @@
20 20
21/** 21/**
22 * @file rps/rps-test_util.c 22 * @file rps/rps-test_util.c
23 * @brief Some utils faciliating the view into the internals for the sampler 23 * @brief Some utils facilitating the view into the internals for the sampler
24 * needed for evaluation 24 * needed for evaluation
25 * 25 *
26 * @author Julius Bünger 26 * @author Julius Bünger
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c
index 8b69dae96..bb4c3597e 100644
--- a/src/rps/rps_api.c
+++ b/src/rps/rps_api.c
@@ -714,7 +714,7 @@ reconnect (struct GNUNET_RPS_Handle *h);
714/** 714/**
715 * Error handler for mq. 715 * Error handler for mq.
716 * 716 *
717 * This function is called whan mq encounters an error. 717 * This function is called when mq encounters an error.
718 * Until now mq doesn't provide useful error messages. 718 * Until now mq doesn't provide useful error messages.
719 * 719 *
720 * @param cls the closure 720 * @param cls the closure
@@ -1192,9 +1192,9 @@ GNUNET_RPS_act_malicious (struct GNUNET_RPS_Handle *h,
1192 1192
1193 1193
1194/** 1194/**
1195 * Cancle an issued request. 1195 * Cancel an issued request.
1196 * 1196 *
1197 * @param rh request handle of request to cancle 1197 * @param rh request handle of request to cancel
1198 */ 1198 */
1199void 1199void
1200GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh) 1200GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh)
@@ -1223,9 +1223,9 @@ GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh)
1223 1223
1224 1224
1225/** 1225/**
1226 * Cancle an issued single info request. 1226 * Cancel an issued single info request.
1227 * 1227 *
1228 * @param rhs request handle of request to cancle 1228 * @param rhs request handle of request to cancel
1229 */ 1229 */
1230void 1230void
1231GNUNET_RPS_request_single_info_cancel ( 1231GNUNET_RPS_request_single_info_cancel (
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c
index de09b423f..ab132ec8a 100644
--- a/src/rps/test_rps.c
+++ b/src/rps/test_rps.c
@@ -1957,7 +1957,7 @@ profiler_cb (struct RPSPeer *rps_peer)
1957 } 1957 }
1958 1958
1959 /* Only request peer ids at one peer. 1959 /* Only request peer ids at one peer.
1960 * (It's the before-last because last one is target of the focussed attack.) 1960 * (It's the before-last because last one is target of the focused attack.)
1961 */ 1961 */
1962 if (eval_peer == rps_peer) 1962 if (eval_peer == rps_peer)
1963 schedule_missing_requests (rps_peer); 1963 schedule_missing_requests (rps_peer);
@@ -2306,7 +2306,7 @@ void
2306compute_diversity () 2306compute_diversity ()
2307{ 2307{
2308 uint32_t i; 2308 uint32_t i;
2309 /* ith entry represents the numer of occurrences in other peer's views */ 2309 /* ith entry represents the number of occurrences in other peer's views */
2310 uint32_t *count_peers = GNUNET_new_array (num_peers, uint32_t); 2310 uint32_t *count_peers = GNUNET_new_array (num_peers, uint32_t);
2311 uint32_t views_total_size; 2311 uint32_t views_total_size;
2312 double expected; 2312 double expected;
@@ -2596,8 +2596,8 @@ stat_str_2_type (const char *stat_str)
2596 { 2596 {
2597 return STAT_TYPE_SENT_PULL_REQ; 2597 return STAT_TYPE_SENT_PULL_REQ;
2598 } 2598 }
2599 else if (0 == strncmp ("# pull replys sent", stat_str, strlen ( 2599 else if (0 == strncmp ("# pull replies sent", stat_str, strlen (
2600 "# pull replys sent"))) 2600 "# pull replies sent")))
2601 { 2601 {
2602 return STAT_TYPE_SENT_PULL_REP; 2602 return STAT_TYPE_SENT_PULL_REP;
2603 } 2603 }
@@ -2670,7 +2670,7 @@ stat_type_2_str (enum STAT_TYPE stat_type)
2670 return "# pull requests sent"; 2670 return "# pull requests sent";
2671 2671
2672 case STAT_TYPE_SENT_PULL_REP: 2672 case STAT_TYPE_SENT_PULL_REP:
2673 return "# pull replys sent"; 2673 return "# pull replies sent";
2674 2674
2675 case STAT_TYPE_RECV_PUSH_SEND: 2675 case STAT_TYPE_RECV_PUSH_SEND:
2676 return "# push message received"; 2676 return "# push message received";
diff --git a/src/scalarproduct/gnunet-scalarproduct.c b/src/scalarproduct/gnunet-scalarproduct.c
index 7dc8ff5c3..14495de05 100644
--- a/src/scalarproduct/gnunet-scalarproduct.c
+++ b/src/scalarproduct/gnunet-scalarproduct.c
@@ -277,7 +277,7 @@ run (void *cls,
277 struct GNUNET_SCALARPRODUCT_Element element; 277 struct GNUNET_SCALARPRODUCT_Element element;
278 char*separator = NULL; 278 char*separator = NULL;
279 279
280 /* get the length of the current key,value; tupel */ 280 /* get the length of the current key,value; tuple */
281 for (end = begin; *end != ';'; end++) 281 for (end = begin; *end != ';'; end++)
282 if (*end == ',') 282 if (*end == ',')
283 separator = end; 283 separator = end;
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
index e33d589be..dc43b5a54 100644
--- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
+++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
@@ -714,7 +714,7 @@ cb_intersection_element_removed (void *cls,
714 * to accept it, otherwise the request will be refused 714 * to accept it, otherwise the request will be refused
715 * Note that we can't just return value from the listen callback, 715 * Note that we can't just return value from the listen callback,
716 * as it is also necessary to specify the set we want to do the 716 * as it is also necessary to specify the set we want to do the
717 * operation with, whith sometimes can be derived from the context 717 * operation with, which sometimes can be derived from the context
718 * message. It's necessary to specify the timeout. 718 * message. It's necessary to specify the timeout.
719 */ 719 */
720static void 720static void
diff --git a/src/scalarproduct/gnunet-service-scalarproduct_alice.c b/src/scalarproduct/gnunet-service-scalarproduct_alice.c
index 1ca7f61da..665d2ad7f 100644
--- a/src/scalarproduct/gnunet-service-scalarproduct_alice.c
+++ b/src/scalarproduct/gnunet-service-scalarproduct_alice.c
@@ -972,7 +972,7 @@ cb_intersection_element_removed (void *cls,
972 * to accept it, otherwise the request will be refused 972 * to accept it, otherwise the request will be refused
973 * Note that we can't just return value from the listen callback, 973 * Note that we can't just return value from the listen callback,
974 * as it is also necessary to specify the set we want to do the 974 * as it is also necessary to specify the set we want to do the
975 * operation with, whith sometimes can be derived from the context 975 * operation with, which sometimes can be derived from the context
976 * message. It's necessary to specify the timeout. 976 * message. It's necessary to specify the timeout.
977 */ 977 */
978static void 978static void
diff --git a/src/scalarproduct/scalarproduct_api.c b/src/scalarproduct/scalarproduct_api.c
index 4ac39614a..44d6bd812 100644
--- a/src/scalarproduct/scalarproduct_api.c
+++ b/src/scalarproduct/scalarproduct_api.c
@@ -417,7 +417,7 @@ GNUNET_SCALARPRODUCT_start_computation (
417 h); 417 h);
418 if (NULL == h->mq) 418 if (NULL == h->mq)
419 { 419 {
420 /* missconfigured scalarproduct service */ 420 /* misconfigured scalarproduct service */
421 GNUNET_break (0); 421 GNUNET_break (0);
422 GNUNET_free (h); 422 GNUNET_free (h);
423 return NULL; 423 return NULL;
diff --git a/src/secretsharing/gnunet-secretsharing-profiler.c b/src/secretsharing/gnunet-secretsharing-profiler.c
index 3465e0167..76bba0bc9 100644
--- a/src/secretsharing/gnunet-secretsharing-profiler.c
+++ b/src/secretsharing/gnunet-secretsharing-profiler.c
@@ -450,7 +450,7 @@ session_disconnect_adapter (void *cls, void *op_result)
450 * @param op the operation this callback corresponds to 450 * @param op the operation this callback corresponds to
451 * @param pinfo the result; will be NULL if the operation has failed 451 * @param pinfo the result; will be NULL if the operation has failed
452 * @param emsg error message if the operation has failed; will be NULL if the 452 * @param emsg error message if the operation has failed; will be NULL if the
453 * operation is successfull 453 * operation is successful
454 */ 454 */
455static void 455static void
456peer_info_cb (void *cb_cls, 456peer_info_cb (void *cb_cls,
diff --git a/src/secretsharing/gnunet-service-secretsharing.c b/src/secretsharing/gnunet-service-secretsharing.c
index 2177134f6..939b7827d 100644
--- a/src/secretsharing/gnunet-service-secretsharing.c
+++ b/src/secretsharing/gnunet-service-secretsharing.c
@@ -241,7 +241,7 @@ struct DecryptSession
241 241
242 /** 242 /**
243 * Share of the local peer. 243 * Share of the local peer.
244 * Containts other important information, such as 244 * Contains other important information, such as
245 * the list of other peers. 245 * the list of other peers.
246 */ 246 */
247 struct GNUNET_SECRETSHARING_Share *share; 247 struct GNUNET_SECRETSHARING_Share *share;
@@ -379,7 +379,7 @@ time_between (struct GNUNET_TIME_Absolute start,
379 379
380 380
381/** 381/**
382 * Compare two peer identities. Indended to be used with qsort or bsearch. 382 * Compare two peer identities. Intended to be used with qsort or bsearch.
383 * 383 *
384 * @param p1 Some peer identity. 384 * @param p1 Some peer identity.
385 * @param p2 Some peer identity. 385 * @param p2 Some peer identity.
@@ -1931,9 +1931,9 @@ decrypt_new_element (void *cls,
1931 gcry_mpi_t w; 1931 gcry_mpi_t w;
1932 /* ciphertext component #1 */ 1932 /* ciphertext component #1 */
1933 gcry_mpi_t c1; 1933 gcry_mpi_t c1;
1934 /* temporary variable (for comparision) #1 */ 1934 /* temporary variable (for comparison) #1 */
1935 gcry_mpi_t tmp1; 1935 gcry_mpi_t tmp1;
1936 /* temporary variable (for comparision) #2 */ 1936 /* temporary variable (for comparison) #2 */
1937 gcry_mpi_t tmp2; 1937 gcry_mpi_t tmp2;
1938 1938
1939 if (NULL == element) 1939 if (NULL == element)
diff --git a/src/secretsharing/secretsharing_api.c b/src/secretsharing/secretsharing_api.c
index b29109da9..98f800c95 100644
--- a/src/secretsharing/secretsharing_api.c
+++ b/src/secretsharing/secretsharing_api.c
@@ -435,14 +435,14 @@ GNUNET_SECRETSHARING_plaintext_generate_i (struct
435 * Encrypt a value. This operation is executed locally, no communication is 435 * Encrypt a value. This operation is executed locally, no communication is
436 * necessary. 436 * necessary.
437 * 437 *
438 * This is a helper function, encryption can be done soley with a session's public key 438 * This is a helper function, encryption can be done solely with a session's public key
439 * and the crypto system parameters. 439 * and the crypto system parameters.
440 * 440 *
441 * @param public_key public key to use for decryption 441 * @param public_key public key to use for decryption
442 * @param message message to encrypt 442 * @param message message to encrypt
443 * @param message_size number of bytes in @a message 443 * @param message_size number of bytes in @a message
444 * @param result_ciphertext pointer to store the resulting ciphertext 444 * @param result_ciphertext pointer to store the resulting ciphertext
445 * @return #GNUNET_YES on succes, #GNUNET_SYSERR if the message is invalid (invalid range) 445 * @return #GNUNET_YES on success, #GNUNET_SYSERR if the message is invalid (invalid range)
446 */ 446 */
447int 447int
448GNUNET_SECRETSHARING_encrypt (const struct 448GNUNET_SECRETSHARING_encrypt (const struct
diff --git a/src/set/gnunet-service-set_union.c b/src/set/gnunet-service-set_union.c
index c06b7cddf..d762e4bba 100644
--- a/src/set/gnunet-service-set_union.c
+++ b/src/set/gnunet-service-set_union.c
@@ -490,7 +490,7 @@ op_get_element (struct Operation *op,
490 * 490 *
491 * @param op the union operation 491 * @param op the union operation
492 * @param ee the element entry 492 * @param ee the element entry
493 * @parem received was this element received from the remote peer? 493 * @param received was this element received from the remote peer?
494 */ 494 */
495static void 495static void
496op_register_element (struct Operation *op, 496op_register_element (struct Operation *op,
@@ -1836,7 +1836,7 @@ send_missing_full_elements_iter (void *cls,
1836/** 1836/**
1837 * Handle a request for full set transmission. 1837 * Handle a request for full set transmission.
1838 * 1838 *
1839 * @parem cls closure, a set union operation 1839 * @param cls closure, a set union operation
1840 * @param mh the demand message 1840 * @param mh the demand message
1841 */ 1841 */
1842void 1842void
@@ -1870,7 +1870,7 @@ handle_union_p2p_request_full (void *cls,
1870/** 1870/**
1871 * Handle a "full done" message. 1871 * Handle a "full done" message.
1872 * 1872 *
1873 * @parem cls closure, a set union operation 1873 * @param cls closure, a set union operation
1874 * @param mh the demand message 1874 * @param mh the demand message
1875 */ 1875 */
1876void 1876void
@@ -1930,7 +1930,7 @@ handle_union_p2p_full_done (void *cls,
1930 * Check a demand by the other peer for elements based on a list 1930 * Check a demand by the other peer for elements based on a list
1931 * of `struct GNUNET_HashCode`s. 1931 * of `struct GNUNET_HashCode`s.
1932 * 1932 *
1933 * @parem cls closure, a set union operation 1933 * @param cls closure, a set union operation
1934 * @param mh the demand message 1934 * @param mh the demand message
1935 * @return #GNUNET_OK if @a mh is well-formed 1935 * @return #GNUNET_OK if @a mh is well-formed
1936 */ 1936 */
@@ -1962,7 +1962,7 @@ check_union_p2p_demand (void *cls,
1962 * Handle a demand by the other peer for elements based on a list 1962 * Handle a demand by the other peer for elements based on a list
1963 * of `struct GNUNET_HashCode`s. 1963 * of `struct GNUNET_HashCode`s.
1964 * 1964 *
1965 * @parem cls closure, a set union operation 1965 * @param cls closure, a set union operation
1966 * @param mh the demand message 1966 * @param mh the demand message
1967 */ 1967 */
1968void 1968void
diff --git a/src/set/set_api.c b/src/set/set_api.c
index a082c23c1..6b3dc940c 100644
--- a/src/set/set_api.c
+++ b/src/set/set_api.c
@@ -490,7 +490,7 @@ set_operation_destroy (struct GNUNET_SET_OperationHandle *oh)
490 490
491 if (NULL != oh->conclude_mqm) 491 if (NULL != oh->conclude_mqm)
492 GNUNET_MQ_discard (oh->conclude_mqm); 492 GNUNET_MQ_discard (oh->conclude_mqm);
493 /* is the operation already commited? */ 493 /* is the operation already committed? */
494 if (NULL != set) 494 if (NULL != set)
495 { 495 {
496 GNUNET_CONTAINER_DLL_remove (set->ops_head, 496 GNUNET_CONTAINER_DLL_remove (set->ops_head,
@@ -649,7 +649,7 @@ create_internal (const struct GNUNET_CONFIGURATION_Handle *cfg,
649 * @param op operation supported by the set 649 * @param op operation supported by the set
650 * Note that the operation has to be specified 650 * Note that the operation has to be specified
651 * beforehand, as certain set operations need to maintain 651 * beforehand, as certain set operations need to maintain
652 * data structures spefific to the operation 652 * data structures specific to the operation
653 * @return a handle to the set 653 * @return a handle to the set
654 */ 654 */
655struct GNUNET_SET_Handle * 655struct GNUNET_SET_Handle *
@@ -1163,7 +1163,7 @@ GNUNET_SET_commit (struct GNUNET_SET_OperationHandle *oh,
1163 * @param set the set to iterate over 1163 * @param set the set to iterate over
1164 * @param iter the iterator to call for each element 1164 * @param iter the iterator to call for each element
1165 * @param iter_cls closure for @a iter 1165 * @param iter_cls closure for @a iter
1166 * @return #GNUNET_YES if the iteration started successfuly, 1166 * @return #GNUNET_YES if the iteration started successfully,
1167 * #GNUNET_NO if another iteration is active 1167 * #GNUNET_NO if another iteration is active
1168 * #GNUNET_SYSERR if the set is invalid (e.g. the server crashed, disconnected) 1168 * #GNUNET_SYSERR if the set is invalid (e.g. the server crashed, disconnected)
1169 */ 1169 */
diff --git a/src/set/test_set_api.c b/src/set/test_set_api.c
index 4b9b0ff82..d1afdd354 100644
--- a/src/set/test_set_api.c
+++ b/src/set/test_set_api.c
@@ -371,7 +371,7 @@ run (void *cls,
371 set2); 371 set2);
372 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id); 372 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id);
373 373
374 /* test if canceling an uncommited request works! */ 374 /* test if canceling an uncommitted request works! */
375 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 375 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
376 "Launching and instantly stopping set operation\n"); 376 "Launching and instantly stopping set operation\n");
377 my_oh = GNUNET_SET_prepare (&local_id, 377 my_oh = GNUNET_SET_prepare (&local_id,
diff --git a/src/seti/seti_api.c b/src/seti/seti_api.c
index 5b88b0469..933aec0e1 100644
--- a/src/seti/seti_api.c
+++ b/src/seti/seti_api.c
@@ -309,7 +309,7 @@ set_operation_destroy (struct GNUNET_SETI_OperationHandle *oh)
309 309
310 if (NULL != oh->conclude_mqm) 310 if (NULL != oh->conclude_mqm)
311 GNUNET_MQ_discard (oh->conclude_mqm); 311 GNUNET_MQ_discard (oh->conclude_mqm);
312 /* is the operation already commited? */ 312 /* is the operation already committed? */
313 if (NULL != set) 313 if (NULL != set)
314 { 314 {
315 GNUNET_CONTAINER_DLL_remove (set->ops_head, 315 GNUNET_CONTAINER_DLL_remove (set->ops_head,
diff --git a/src/setu/gnunet-service-setu.c b/src/setu/gnunet-service-setu.c
index 862b78aa9..bd1113f15 100644
--- a/src/setu/gnunet-service-setu.c
+++ b/src/setu/gnunet-service-setu.c
@@ -685,7 +685,7 @@ calculate_perf_rtt() {
685 int bytes_transmitted = 0; 685 int bytes_transmitted = 0;
686 686
687 /** 687 /**
688 * Calculate RGNUNET_SETU_AcceptMessageRT of Fullsync normaly 1 or 1.5 depending 688 * Calculate RGNUNET_SETU_AcceptMessageRT of Fullsync normally 1 or 1.5 depending
689 */ 689 */
690 if (( perf_rtt.element_full.received != 0 ) || 690 if (( perf_rtt.element_full.received != 0 ) ||
691 ( perf_rtt.element_full.sent != 0) 691 ( perf_rtt.element_full.sent != 0)
@@ -1090,7 +1090,7 @@ op_get_element (struct Operation *op,
1090 * 1090 *
1091 * @param op the union operation 1091 * @param op the union operation
1092 * @param ee the element entry 1092 * @param ee the element entry
1093 * @parem received was this element received from the remote peer? 1093 * @param received was this element received from the remote peer?
1094 */ 1094 */
1095static void 1095static void
1096op_register_element (struct Operation *op, 1096op_register_element (struct Operation *op,
@@ -2419,7 +2419,7 @@ send_missing_full_elements_iter (void *cls,
2419/** 2419/**
2420 * Handle a request for full set transmission. 2420 * Handle a request for full set transmission.
2421 * 2421 *
2422 * @parem cls closure, a set union operation 2422 * @param cls closure, a set union operation
2423 * @param mh the demand message 2423 * @param mh the demand message
2424 */ 2424 */
2425static void 2425static void
@@ -2449,7 +2449,7 @@ handle_union_p2p_request_full (void *cls,
2449/** 2449/**
2450 * Handle a "full done" message. 2450 * Handle a "full done" message.
2451 * 2451 *
2452 * @parem cls closure, a set union operation 2452 * @param cls closure, a set union operation
2453 * @param mh the demand message 2453 * @param mh the demand message
2454 */ 2454 */
2455static void 2455static void
@@ -2510,7 +2510,7 @@ handle_union_p2p_full_done (void *cls,
2510 * Check a demand by the other peer for elements based on a list 2510 * Check a demand by the other peer for elements based on a list
2511 * of `struct GNUNET_HashCode`s. 2511 * of `struct GNUNET_HashCode`s.
2512 * 2512 *
2513 * @parem cls closure, a set union operation 2513 * @param cls closure, a set union operation
2514 * @param mh the demand message 2514 * @param mh the demand message
2515 * @return #GNUNET_OK if @a mh is well-formed 2515 * @return #GNUNET_OK if @a mh is well-formed
2516 */ 2516 */
@@ -2538,7 +2538,7 @@ check_union_p2p_demand (void *cls,
2538 * Handle a demand by the other peer for elements based on a list 2538 * Handle a demand by the other peer for elements based on a list
2539 * of `struct GNUNET_HashCode`s. 2539 * of `struct GNUNET_HashCode`s.
2540 * 2540 *
2541 * @parem cls closure, a set union operation 2541 * @param cls closure, a set union operation
2542 * @param mh the demand message 2542 * @param mh the demand message
2543 */ 2543 */
2544static void 2544static void
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index 3b82e8af9..b273f9c71 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -379,7 +379,7 @@ run (void *cls,
379 set2); 379 set2);
380 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id); 380 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id);
381 381
382 /* test if canceling an uncommited request works! */ 382 /* test if canceling an uncommitted request works! */
383 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 383 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
384 "Launching and instantly stopping set operation\n"); 384 "Launching and instantly stopping set operation\n");
385 my_oh = GNUNET_SETU_prepare (&local_id, 385 my_oh = GNUNET_SETU_prepare (&local_id,
diff --git a/src/setu/setu_api.c b/src/setu/setu_api.c
index dd3a4a769..0a09b18b2 100644
--- a/src/setu/setu_api.c
+++ b/src/setu/setu_api.c
@@ -293,7 +293,7 @@ set_operation_destroy (struct GNUNET_SETU_OperationHandle *oh)
293 293
294 if (NULL != oh->conclude_mqm) 294 if (NULL != oh->conclude_mqm)
295 GNUNET_MQ_discard (oh->conclude_mqm); 295 GNUNET_MQ_discard (oh->conclude_mqm);
296 /* is the operation already commited? */ 296 /* is the operation already committed? */
297 if (NULL != set) 297 if (NULL != set)
298 { 298 {
299 GNUNET_CONTAINER_DLL_remove (set->ops_head, 299 GNUNET_CONTAINER_DLL_remove (set->ops_head,
diff --git a/src/setu/test_setu_api.c b/src/setu/test_setu_api.c
index d5c9f5b7a..2fb7d015e 100644
--- a/src/setu/test_setu_api.c
+++ b/src/setu/test_setu_api.c
@@ -378,7 +378,7 @@ run (void *cls,
378 set2); 378 set2);
379 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id); 379 GNUNET_CRYPTO_hash_create_random (GNUNET_CRYPTO_QUALITY_WEAK, &app_id);
380 380
381 /* test if canceling an uncommited request works! */ 381 /* test if canceling an uncommitted request works! */
382 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 382 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
383 "Launching and instantly stopping set operation\n"); 383 "Launching and instantly stopping set operation\n");
384 my_oh = GNUNET_SETU_prepare (&local_id, 384 my_oh = GNUNET_SETU_prepare (&local_id,
diff --git a/src/statistics/gnunet-statistics.c b/src/statistics/gnunet-statistics.c
index b9aedb4e7..5894ef68c 100644
--- a/src/statistics/gnunet-statistics.c
+++ b/src/statistics/gnunet-statistics.c
@@ -396,7 +396,7 @@ print_finish (void *cls)
396 * Implements #GNUNET_STATISTICS_Callback 396 * Implements #GNUNET_STATISTICS_Callback
397 * 397 *
398 * @param cls Closure - The index of the node. 398 * @param cls Closure - The index of the node.
399 * @param succes Whether statistics were obtained successfully. 399 * @param success Whether statistics were obtained successfully.
400 */ 400 */
401static void 401static void
402continuation_print (void *cls, 402continuation_print (void *cls,
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index bf0a90b45..d6c2680b8 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -1287,7 +1287,7 @@ add_setter_action (struct GNUNET_STATISTICS_Handle *h,
1287 { 1287 {
1288 if (ACTION_UPDATE == type) 1288 if (ACTION_UPDATE == type)
1289 { 1289 {
1290 /* make delta cummulative */ 1290 /* make delta cumulative */
1291 delta = (int64_t) value; 1291 delta = (int64_t) value;
1292 ai->value += delta; 1292 ai->value += delta;
1293 } 1293 }
diff --git a/src/testbed/generate-underlay-topology.c b/src/testbed/generate-underlay-topology.c
index 97c3c1e67..b7bd8fce9 100644
--- a/src/testbed/generate-underlay-topology.c
+++ b/src/testbed/generate-underlay-topology.c
@@ -306,7 +306,7 @@ run (void *cls,
306 default: 306 default:
307 break; 307 break;
308 } 308 }
309 /* contruct topologies */ 309 /* construct topologies */
310 switch (topology) 310 switch (topology)
311 { 311 {
312 case GNUNET_TESTBED_TOPOLOGY_LINE: 312 case GNUNET_TESTBED_TOPOLOGY_LINE:
@@ -393,7 +393,7 @@ main (int argc, char *const argv[])
393 "\t cap: the maximum number of links a node can have\n" 393 "\t cap: the maximum number of links a node can have\n"
394 "\t m: the number of links a node should have while joining the network\n" 394 "\t m: the number of links a node should have while joining the network\n"
395 "\t filename: the path of the file which contains topology information\n" 395 "\t filename: the path of the file which contains topology information\n"
396 "NOTE: the format of the above file is descibed here: https://www.gnunet.org/content/topology-file-format\n"), 396 "NOTE: the format of the above file is described here: https://www.gnunet.org/content/topology-file-format\n"),
397 option, 397 option,
398 &run, 398 &run,
399 NULL); 399 NULL);
diff --git a/src/testbed/gnunet-helper-testbed.c b/src/testbed/gnunet-helper-testbed.c
index 5d0c3b048..938e50448 100644
--- a/src/testbed/gnunet-helper-testbed.c
+++ b/src/testbed/gnunet-helper-testbed.c
@@ -395,7 +395,7 @@ tokenizer_cb (void *cls, const struct GNUNET_MessageHeader *message)
395 395
396 GNUNET_asprintf (&evar, GNUNET_TESTING_PREFIX "=%s", evstr); 396 GNUNET_asprintf (&evar, GNUNET_TESTING_PREFIX "=%s", evstr);
397 GNUNET_assert (0 == putenv (evar)); /* consumes 'evar', 397 GNUNET_assert (0 == putenv (evar)); /* consumes 'evar',
398 see putenv(): becomes part of envrionment! */ 398 see putenv(): becomes part of environment! */
399 GNUNET_free (evstr); 399 GNUNET_free (evstr);
400 evstr = NULL; 400 evstr = NULL;
401 } 401 }
@@ -426,7 +426,7 @@ tokenizer_cb (void *cls, const struct GNUNET_MessageHeader *message)
426 /* expose testbed configuration through env variable */ 426 /* expose testbed configuration through env variable */
427 GNUNET_asprintf (&evar, "%s=%s", ENV_TESTBED_CONFIG, config); 427 GNUNET_asprintf (&evar, "%s=%s", ENV_TESTBED_CONFIG, config);
428 GNUNET_assert (0 == putenv (evar)); /* consumes 'evar', 428 GNUNET_assert (0 == putenv (evar)); /* consumes 'evar',
429 see putenv(): becomes part of envrionment! */ 429 see putenv(): becomes part of environment! */
430 evstr = NULL; 430 evstr = NULL;
431 } 431 }
432 testbed = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR /*verbose? */, 432 testbed = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR /*verbose? */,
diff --git a/src/testbed/gnunet-service-test-barriers.c b/src/testbed/gnunet-service-test-barriers.c
index c6c42cd1f..e10a28902 100644
--- a/src/testbed/gnunet-service-test-barriers.c
+++ b/src/testbed/gnunet-service-test-barriers.c
@@ -66,7 +66,7 @@ do_shutdown (void *cls)
66 66
67 67
68/** 68/**
69 * Functions of this type are to be given as acallback argumetn to 69 * Functions of this type are to be given as acallback argument to
70 * GNUNET_TESTBED_barrier_wait(). The callback will be called when the barrier 70 * GNUNET_TESTBED_barrier_wait(). The callback will be called when the barrier
71 * corresponding given in GNUNET_TESTBED_barrier_wait() is crossed or cancelled. 71 * corresponding given in GNUNET_TESTBED_barrier_wait() is crossed or cancelled.
72 * 72 *
diff --git a/src/testbed/gnunet-service-testbed_barriers.c b/src/testbed/gnunet-service-testbed_barriers.c
index ac89abc88..be33bd131 100644
--- a/src/testbed/gnunet-service-testbed_barriers.c
+++ b/src/testbed/gnunet-service-testbed_barriers.c
@@ -458,7 +458,7 @@ disconnect_cb (void *cls,
458 458
459 459
460/** 460/**
461 * Function to initialise barrriers component 461 * Function to initialise barriers component
462 * 462 *
463 * @param cfg the configuration to use for initialisation 463 * @param cfg the configuration to use for initialisation
464 */ 464 */
@@ -538,7 +538,7 @@ GST_barriers_destroy ()
538 * @param status status of the barrier; #GNUNET_OK if the barrier is crossed; 538 * @param status status of the barrier; #GNUNET_OK if the barrier is crossed;
539 * #GNUNET_SYSERR upon error 539 * #GNUNET_SYSERR upon error
540 * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the 540 * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the
541 * error messsage 541 * error message
542 */ 542 */
543static void 543static void
544wbarrier_status_cb (void *cls, 544wbarrier_status_cb (void *cls,
diff --git a/src/testbed/gnunet-service-testbed_cpustatus.c b/src/testbed/gnunet-service-testbed_cpustatus.c
index 440f2c24f..5b9528ba3 100644
--- a/src/testbed/gnunet-service-testbed_cpustatus.c
+++ b/src/testbed/gnunet-service-testbed_cpustatus.c
@@ -78,7 +78,7 @@ static double agedIOLoad = -1;
78 78
79 79
80/** 80/**
81 * hanlde to the file to write the load statistics to 81 * handle to the file to write the load statistics to
82 */ 82 */
83struct GNUNET_BIO_WriteHandle *bw; 83struct GNUNET_BIO_WriteHandle *bw;
84 84
diff --git a/src/testbed/gnunet-service-testbed_links.c b/src/testbed/gnunet-service-testbed_links.c
index dbdeed0d9..fe87d64ea 100644
--- a/src/testbed/gnunet-service-testbed_links.c
+++ b/src/testbed/gnunet-service-testbed_links.c
@@ -58,7 +58,7 @@ enum LCFContextState
58 DELEGATED_HOST_REGISTERED, 58 DELEGATED_HOST_REGISTERED,
59 59
60 /** 60 /**
61 * The slave host has been registred at the forwarding controller 61 * The slave host has been registered at the forwarding controller
62 */ 62 */
63 SLAVE_HOST_REGISTERED, 63 SLAVE_HOST_REGISTERED,
64 64
@@ -539,7 +539,7 @@ GST_find_dest_route (uint32_t host_id)
539 539
540 540
541/** 541/**
542 * Function to send a failure reponse for controller link operation 542 * Function to send a failure response for controller link operation
543 * 543 *
544 * @param client the client to send the message to 544 * @param client the client to send the message to
545 * @param operation_id the operation ID of the controller link request 545 * @param operation_id the operation ID of the controller link request
@@ -794,12 +794,12 @@ slave_event_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event)
794 794
795 795
796/** 796/**
797 * Callback to signal successfull startup of the controller process 797 * Callback to signal successful startup of the controller process
798 * 798 *
799 * @param cls the handle to the slave whose status is to be found here 799 * @param cls the handle to the slave whose status is to be found here
800 * @param cfg the configuration with which the controller has been started; 800 * @param cfg the configuration with which the controller has been started;
801 * NULL if status is not #GNUNET_OK 801 * NULL if status is not #GNUNET_OK
802 * @param status #GNUNET_OK if the startup is successfull; #GNUNET_SYSERR if not, 802 * @param status #GNUNET_OK if the startup is successful; #GNUNET_SYSERR if not,
803 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case 803 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
804 */ 804 */
805static void 805static void
diff --git a/src/testbed/gnunet-service-testbed_oc.c b/src/testbed/gnunet-service-testbed_oc.c
index 8a61f72f7..4fe7c20b3 100644
--- a/src/testbed/gnunet-service-testbed_oc.c
+++ b/src/testbed/gnunet-service-testbed_oc.c
@@ -392,7 +392,7 @@ forwarded_overlay_connect_timeout (void *cls)
392 392
393/** 393/**
394 * Callback to be called when forwarded overlay connection operation has a reply 394 * Callback to be called when forwarded overlay connection operation has a reply
395 * from the sub-controller successfull. We have to relay the reply msg back to 395 * from the sub-controller successful. We have to relay the reply msg back to
396 * the client 396 * the client
397 * 397 *
398 * @param cls ForwardedOperationContext 398 * @param cls ForwardedOperationContext
@@ -578,7 +578,7 @@ cleanup_occ (struct OverlayConnectContext *occ)
578 578
579 579
580/** 580/**
581 * Task for cleaing up overlay connect context structure 581 * Task for cleaning up overlay connect context structure
582 * 582 *
583 * @param cls the overlay connect context 583 * @param cls the overlay connect context
584 */ 584 */
@@ -1222,7 +1222,7 @@ occ_cache_get_handle_core_cb (void *cls,
1222 1222
1223/** 1223/**
1224 * Callback to be called when forwarded get peer config operation as part of 1224 * Callback to be called when forwarded get peer config operation as part of
1225 * overlay connect is successfull. Connection to Peer 1's core is made and is 1225 * overlay connect is successful. Connection to Peer 1's core is made and is
1226 * checked for new connection from peer 2 1226 * checked for new connection from peer 2
1227 * 1227 *
1228 * @param cls ForwardedOperationContext 1228 * @param cls ForwardedOperationContext
@@ -1369,7 +1369,7 @@ register_host (struct Slave *slave,
1369 reghost_match_iterator, 1369 reghost_match_iterator,
1370 &rhc))) 1370 &rhc)))
1371 { 1371 {
1372 /* create and add a new registerd host context */ 1372 /* create and add a new registered host context */
1373 /* add the focc to its queue */ 1373 /* add the focc to its queue */
1374 GNUNET_CONTAINER_multihashmap_put (slave->reghost_map, 1374 GNUNET_CONTAINER_multihashmap_put (slave->reghost_map,
1375 &hash, 1375 &hash,
diff --git a/src/testbed/gnunet-service-testbed_peers.c b/src/testbed/gnunet-service-testbed_peers.c
index 0184635fa..0bfeb4583 100644
--- a/src/testbed/gnunet-service-testbed_peers.c
+++ b/src/testbed/gnunet-service-testbed_peers.c
@@ -227,7 +227,7 @@ peer_create_forward_timeout (void *cls)
227 227
228 228
229/** 229/**
230 * Callback to be called when forwarded peer create operation is successfull. We 230 * Callback to be called when forwarded peer create operation is successful. We
231 * have to relay the reply msg back to the client 231 * have to relay the reply msg back to the client
232 * 232 *
233 * @param cls ForwardedOperationContext 233 * @param cls ForwardedOperationContext
@@ -387,7 +387,7 @@ GST_notify_client_disconnect_peers (struct GNUNET_SERVICE_Client *client)
387 387
388 388
389/** 389/**
390 * Callback to be called when forwarded peer destroy operation is successfull. We 390 * Callback to be called when forwarded peer destroy operation is successful. We
391 * have to relay the reply msg back to the client 391 * have to relay the reply msg back to the client
392 * 392 *
393 * @param cls ForwardedOperationContext 393 * @param cls ForwardedOperationContext
@@ -576,7 +576,7 @@ handle_peer_destroy (void *cls,
576 uint32_t peer_id; 576 uint32_t peer_id;
577 577
578 peer_id = ntohl (msg->peer_id); 578 peer_id = ntohl (msg->peer_id);
579 LOG_DEBUG ("Received peer destory on peer: %u and operation id: %llu\n", 579 LOG_DEBUG ("Received peer destroy on peer: %u and operation id: %llu\n",
580 (unsigned int) peer_id, 580 (unsigned int) peer_id,
581 (unsigned long long) GNUNET_ntohll (msg->operation_id)); 581 (unsigned long long) GNUNET_ntohll (msg->operation_id));
582 if (! VALID_PEER_ID (peer_id)) 582 if (! VALID_PEER_ID (peer_id))
@@ -592,7 +592,7 @@ handle_peer_destroy (void *cls,
592 peer = GST_peer_list[peer_id]; 592 peer = GST_peer_list[peer_id];
593 if (GNUNET_YES == peer->is_remote) 593 if (GNUNET_YES == peer->is_remote)
594 { 594 {
595 /* Forward the destory message to sub controller */ 595 /* Forward the destroy message to sub controller */
596 fopc = GNUNET_new (struct ForwardedOperationContext); 596 fopc = GNUNET_new (struct ForwardedOperationContext);
597 fopc->client = client; 597 fopc->client = client;
598 fopc->cls = peer; 598 fopc->cls = peer;
@@ -986,7 +986,7 @@ check_peer_reconfigure (void *cls,
986 986
987/** 987/**
988 * Handler for #GNUNET_MESSAGE_TYPDE_TESTBED_RECONFIGURE_PEER type messages. 988 * Handler for #GNUNET_MESSAGE_TYPDE_TESTBED_RECONFIGURE_PEER type messages.
989 * Should stop the peer asyncronously, destroy it and create it again with the 989 * Should stop the peer asynchronously, destroy it and create it again with the
990 * new configuration. 990 * new configuration.
991 * 991 *
992 * @param cls identification of the client 992 * @param cls identification of the client
@@ -1342,7 +1342,7 @@ handle_manage_peer_service (void *cls,
1342 } 1342 }
1343 if (GNUNET_YES == peer->is_remote) 1343 if (GNUNET_YES == peer->is_remote)
1344 { 1344 {
1345 /* Forward the destory message to sub controller */ 1345 /* Forward the destroy message to sub controller */
1346 fopc = GNUNET_new (struct ForwardedOperationContext); 1346 fopc = GNUNET_new (struct ForwardedOperationContext);
1347 fopc->client = client; 1347 fopc->client = client;
1348 fopc->cls = peer; 1348 fopc->cls = peer;
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c
index 90813c8e5..b07c725a3 100644
--- a/src/testbed/gnunet-testbed-profiler.c
+++ b/src/testbed/gnunet-testbed-profiler.c
@@ -287,7 +287,7 @@ main (int argc, char *const *argv)
287 "num-errors", 287 "num-errors",
288 "COUNT", 288 "COUNT",
289 gettext_noop ( 289 gettext_noop (
290 "tolerate COUNT number of continious timeout failures"), 290 "tolerate COUNT number of continuous timeout failures"),
291 &num_cont_fails), 291 &num_cont_fails),
292 GNUNET_GETOPT_option_flag ('n', 292 GNUNET_GETOPT_option_flag ('n',
293 "non-interactive", 293 "non-interactive",
diff --git a/src/testbed/test_gnunet_helper_testbed.c b/src/testbed/test_gnunet_helper_testbed.c
index d4eec0269..ea303a86c 100644
--- a/src/testbed/test_gnunet_helper_testbed.c
+++ b/src/testbed/test_gnunet_helper_testbed.c
@@ -66,7 +66,7 @@ static struct GNUNET_SCHEDULER_Task *abort_task;
66static struct GNUNET_SCHEDULER_Task *shutdown_task; 66static struct GNUNET_SCHEDULER_Task *shutdown_task;
67 67
68/** 68/**
69 * Configuratin handler 69 * Configuration handle.
70 */ 70 */
71static struct GNUNET_CONFIGURATION_Handle *cfg; 71static struct GNUNET_CONFIGURATION_Handle *cfg;
72 72
@@ -178,7 +178,7 @@ mst_cb (void *cls,
178 178
179/** 179/**
180 * Callback that will be called when the helper process dies. This is not called 180 * Callback that will be called when the helper process dies. This is not called
181 * when the helper process is stoped using GNUNET_HELPER_stop() 181 * when the helper process is stopped using GNUNET_HELPER_stop()
182 * 182 *
183 * @param cls the closure from GNUNET_HELPER_start() 183 * @param cls the closure from GNUNET_HELPER_start()
184 */ 184 */
diff --git a/src/testbed/test_testbed_api.c b/src/testbed/test_testbed_api.c
index 49f1d9ae9..a46a7596a 100644
--- a/src/testbed/test_testbed_api.c
+++ b/src/testbed/test_testbed_api.c
@@ -269,7 +269,7 @@ service_connect_comp_cb (void *cls,
269 * @param op the operation this callback corresponds to 269 * @param op the operation this callback corresponds to
270 * @param pinfo the result; will be NULL if the operation has failed 270 * @param pinfo the result; will be NULL if the operation has failed
271 * @param emsg error message if the operation has failed; will be NULL if the 271 * @param emsg error message if the operation has failed; will be NULL if the
272 * operation is successfull 272 * operation is successful
273 */ 273 */
274static void 274static void
275peerinfo_cb (void *cb_cls, 275peerinfo_cb (void *cb_cls,
@@ -420,12 +420,12 @@ registration_comp (void *cls,
420 420
421 421
422/** 422/**
423 * Callback to signal successfull startup of the controller process 423 * Callback to signal successful startup of the controller process
424 * 424 *
425 * @param cls the closure from GNUNET_TESTBED_controller_start() 425 * @param cls the closure from GNUNET_TESTBED_controller_start()
426 * @param cfg the configuration with which the controller has been started; 426 * @param cfg the configuration with which the controller has been started;
427 * NULL if status is not #GNUNET_OK 427 * NULL if status is not #GNUNET_OK
428 * @param status #GNUNET_OK if the startup is successfull; #GNUNET_SYSERR if not, 428 * @param status #GNUNET_OK if the startup is successful; #GNUNET_SYSERR if not,
429 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case 429 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
430 */ 430 */
431static void 431static void
diff --git a/src/testbed/test_testbed_api_2peers_1controller.c b/src/testbed/test_testbed_api_2peers_1controller.c
index 4a8b8a584..1ca1d1b2e 100644
--- a/src/testbed/test_testbed_api_2peers_1controller.c
+++ b/src/testbed/test_testbed_api_2peers_1controller.c
@@ -450,12 +450,12 @@ registration_comp (void *cls, const char *emsg)
450 450
451 451
452/** 452/**
453 * Callback to signal successfull startup of the controller process 453 * Callback to signal successful startup of the controller process
454 * 454 *
455 * @param cls the closure from GNUNET_TESTBED_controller_start() 455 * @param cls the closure from GNUNET_TESTBED_controller_start()
456 * @param cfg the configuration with which the controller has been started; 456 * @param cfg the configuration with which the controller has been started;
457 * NULL if status is not GNUNET_OK 457 * NULL if status is not GNUNET_OK
458 * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, 458 * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not,
459 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case 459 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
460 */ 460 */
461static void 461static void
diff --git a/src/testbed/test_testbed_api_3peers_3controllers.c b/src/testbed/test_testbed_api_3peers_3controllers.c
index bf9011941..17072ffa8 100644
--- a/src/testbed/test_testbed_api_3peers_3controllers.c
+++ b/src/testbed/test_testbed_api_3peers_3controllers.c
@@ -787,12 +787,12 @@ registration_comp (void *cls, const char *emsg)
787 787
788 788
789/** 789/**
790 * Callback to signal successfull startup of the controller process 790 * Callback to signal successful startup of the controller process
791 * 791 *
792 * @param cls the closure from GNUNET_TESTBED_controller_start() 792 * @param cls the closure from GNUNET_TESTBED_controller_start()
793 * @param cfg the configuration with which the controller has been started; 793 * @param cfg the configuration with which the controller has been started;
794 * NULL if status is not GNUNET_OK 794 * NULL if status is not GNUNET_OK
795 * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, 795 * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not,
796 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case 796 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
797 */ 797 */
798static void 798static void
diff --git a/src/testbed/test_testbed_api_barriers.c b/src/testbed/test_testbed_api_barriers.c
index f80e73ddd..74dd89126 100644
--- a/src/testbed/test_testbed_api_barriers.c
+++ b/src/testbed/test_testbed_api_barriers.c
@@ -98,7 +98,7 @@ do_timeout (void *cls)
98 * @param status status of the barrier; #GNUNET_OK if the barrier is crossed; 98 * @param status status of the barrier; #GNUNET_OK if the barrier is crossed;
99 * #GNUNET_SYSERR upon error 99 * #GNUNET_SYSERR upon error
100 * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the 100 * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the
101 * error messsage 101 * error message
102 */ 102 */
103static void 103static void
104barrier_cb (void *cls, 104barrier_cb (void *cls,
diff --git a/src/testbed/test_testbed_api_controllerlink.c b/src/testbed/test_testbed_api_controllerlink.c
index 784407520..0ec9d63e1 100644
--- a/src/testbed/test_testbed_api_controllerlink.c
+++ b/src/testbed/test_testbed_api_controllerlink.c
@@ -163,7 +163,7 @@ enum Stage
163 SLAVE1_PEER_DESTROY_SUCCESS, 163 SLAVE1_PEER_DESTROY_SUCCESS,
164 164
165 /** 165 /**
166 * Peer destory on slave 2 successful 166 * Peer destroy on slave 2 successful
167 */ 167 */
168 SLAVE2_PEER_DESTROY_SUCCESS, 168 SLAVE2_PEER_DESTROY_SUCCESS,
169 169
@@ -178,7 +178,7 @@ enum Stage
178 SLAVE3_LINK_SUCCESS, 178 SLAVE3_LINK_SUCCESS,
179 179
180 /** 180 /**
181 * Master peer destoryed. Destory slave 3 peer 181 * Master peer destroyed. Destroy slave 3 peer
182 */ 182 */
183 MASTER_PEER_DESTROY_SUCCESS, 183 MASTER_PEER_DESTROY_SUCCESS,
184 184
@@ -478,7 +478,7 @@ peer_create_cb (void *cls, struct GNUNET_TESTBED_Peer *peer, const char *emsg)
478 478
479/** 479/**
480 * Checks the event if it is an operation finished event and if indicates a 480 * Checks the event if it is an operation finished event and if indicates a
481 * successfull completion of operation 481 * successful completion of operation
482 * 482 *
483 * @param event the event information to check 483 * @param event the event information to check
484 */ 484 */
@@ -727,12 +727,12 @@ registration_cont (void *cls, const char *emsg)
727 727
728 728
729/** 729/**
730 * Callback to signal successfull startup of the controller process 730 * Callback to signal successful startup of the controller process
731 * 731 *
732 * @param cls the closure from GNUNET_TESTBED_controller_start() 732 * @param cls the closure from GNUNET_TESTBED_controller_start()
733 * @param cfg the configuration with which the controller has been started; 733 * @param cfg the configuration with which the controller has been started;
734 * NULL if status is not GNUNET_OK 734 * NULL if status is not GNUNET_OK
735 * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, 735 * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not,
736 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case 736 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
737 */ 737 */
738static void 738static void
diff --git a/src/testbed/test_testbed_api_operations.c b/src/testbed/test_testbed_api_operations.c
index aed213d49..133aadf21 100644
--- a/src/testbed/test_testbed_api_operations.c
+++ b/src/testbed/test_testbed_api_operations.c
@@ -105,7 +105,7 @@ struct GNUNET_TESTBED_Operation *op7;
105struct GNUNET_TESTBED_Operation *op8; 105struct GNUNET_TESTBED_Operation *op8;
106 106
107/** 107/**
108 * This opration is started after activating op8. It should consume a resource 108 * This operation is started after activating op8. It should consume a resource
109 * on queues q1 and q2. It should not be started until op8 is again made 109 * on queues q1 and q2. It should not be started until op8 is again made
110 * inactive at which point it should be released. It can be released as soon as 110 * inactive at which point it should be released. It can be released as soon as
111 * it begins. 111 * it begins.
@@ -250,7 +250,7 @@ start_cb (void *cls);
250 * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the 250 * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the
251 * operation generated an event) or AFTER the operation generated an event due 251 * operation generated an event) or AFTER the operation generated an event due
252 * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that 252 * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that
253 * a callback to the 'OperationStart' preceeds the call to 'OperationRelease'. 253 * a callback to the 'OperationStart' precedes the call to 'OperationRelease'.
254 * Implementations of this function are expected to clean up whatever state is 254 * Implementations of this function are expected to clean up whatever state is
255 * in 'cls' and release all resources associated with the operation. 255 * in 'cls' and release all resources associated with the operation.
256 */ 256 */
@@ -419,7 +419,7 @@ start_cb (void *cls)
419 * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the 419 * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the
420 * operation generated an event) or AFTER the operation generated an event due 420 * operation generated an event) or AFTER the operation generated an event due
421 * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that 421 * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that
422 * a callback to the 'OperationStart' preceeds the call to 'OperationRelease'. 422 * a callback to the 'OperationStart' precedes the call to 'OperationRelease'.
423 * Implementations of this function are expected to clean up whatever state is 423 * Implementations of this function are expected to clean up whatever state is
424 * in 'cls' and release all resources associated with the operation. 424 * in 'cls' and release all resources associated with the operation.
425 */ 425 */
diff --git a/src/testbed/test_testbed_api_test.c b/src/testbed/test_testbed_api_test.c
index aefbd340e..f451c6555 100644
--- a/src/testbed/test_testbed_api_test.c
+++ b/src/testbed/test_testbed_api_test.c
@@ -122,7 +122,7 @@ do_abort (void *cls)
122 * @param op the operation this callback corresponds to 122 * @param op the operation this callback corresponds to
123 * @param pinfo the result; will be NULL if the operation has failed 123 * @param pinfo the result; will be NULL if the operation has failed
124 * @param emsg error message if the operation has failed; will be NULL if the 124 * @param emsg error message if the operation has failed; will be NULL if the
125 * operation is successfull 125 * operation is successful
126 */ 126 */
127static void 127static void
128peerinfo_cb (void *cb_cls, struct GNUNET_TESTBED_Operation *op_, 128peerinfo_cb (void *cb_cls, struct GNUNET_TESTBED_Operation *op_,
diff --git a/src/testbed/test_testbed_api_test_timeout.c b/src/testbed/test_testbed_api_test_timeout.c
index d2f73df14..fe76ad441 100644
--- a/src/testbed/test_testbed_api_test_timeout.c
+++ b/src/testbed/test_testbed_api_test_timeout.c
@@ -20,7 +20,7 @@
20 20
21/** 21/**
22 * @file src/testbed/test_testbed_api_test.c 22 * @file src/testbed/test_testbed_api_test.c
23 * @brief testing cases for testing notications via test master callback upon 23 * @brief testing cases for testing notifications via test master callback upon
24 * timeout while setting up testbed using functions 24 * timeout while setting up testbed using functions
25 * GNUNET_TESTBED_test_run() 25 * GNUNET_TESTBED_test_run()
26 * @author Sree Harsha Totakura <sreeharsha@totakura.in> 26 * @author Sree Harsha Totakura <sreeharsha@totakura.in>
diff --git a/src/testbed/testbed_api.c b/src/testbed/testbed_api.c
index 386850b89..18bb0c3f6 100644
--- a/src/testbed/testbed_api.c
+++ b/src/testbed/testbed_api.c
@@ -239,7 +239,7 @@ struct SearchContext
239/** 239/**
240 * Search iterator for searching an operation context 240 * Search iterator for searching an operation context
241 * 241 *
242 * @param cls the serach context 242 * @param cls the search context
243 * @param key current key code 243 * @param key current key code
244 * @param value value in the hash map 244 * @param value value in the hash map
245 * @return #GNUNET_YES if we should continue to iterate, 245 * @return #GNUNET_YES if we should continue to iterate,
@@ -408,7 +408,7 @@ handle_add_host_confirm (void *cls,
408 * Handler for forwarded operations 408 * Handler for forwarded operations
409 * 409 *
410 * @param c the controller handle 410 * @param c the controller handle
411 * @param opc the opearation context 411 * @param opc the operation context
412 * @param msg the message 412 * @param msg the message
413 */ 413 */
414static void 414static void
diff --git a/src/testbed/testbed_api_cmd_controller.c b/src/testbed/testbed_api_cmd_controller.c
index da23df1ef..e3044eaa7 100644
--- a/src/testbed/testbed_api_cmd_controller.c
+++ b/src/testbed/testbed_api_cmd_controller.c
@@ -126,12 +126,12 @@ registration_comp (void *cls,
126 126
127 127
128/** 128/**
129 * Callback to signal successfull startup of the controller process 129 * Callback to signal successful startup of the controller process
130 * 130 *
131 * @param cls the closure from GNUNET_TESTBED_controller_start() 131 * @param cls the closure from GNUNET_TESTBED_controller_start()
132 * @param cfg the configuration with which the controller has been started; 132 * @param cfg the configuration with which the controller has been started;
133 * NULL if status is not #GNUNET_OK 133 * NULL if status is not #GNUNET_OK
134 * @param status #GNUNET_OK if the startup is successfull; #GNUNET_SYSERR if not, 134 * @param status #GNUNET_OK if the startup is successful; #GNUNET_SYSERR if not,
135 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case 135 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
136 */ 136 */
137static void 137static void
diff --git a/src/testbed/testbed_api_cmd_tng_service.c b/src/testbed/testbed_api_cmd_tng_service.c
index f9ef44bad..cce2e14e3 100644
--- a/src/testbed/testbed_api_cmd_tng_service.c
+++ b/src/testbed/testbed_api_cmd_tng_service.c
@@ -177,7 +177,7 @@ service_connect_comp_cb (void *cls,
177 if (NULL != emsg) 177 if (NULL != emsg)
178 { 178 {
179 LOG (GNUNET_ERROR_TYPE_DEBUG, 179 LOG (GNUNET_ERROR_TYPE_DEBUG,
180 "An error occured connecting to service %s\n", 180 "An error occurred connecting to service %s\n",
181 emsg); 181 emsg);
182 GNUNET_TESTBED_operation_done (ts->operation); 182 GNUNET_TESTBED_operation_done (ts->operation);
183 } 183 }
@@ -191,7 +191,7 @@ service_connect_comp_cb (void *cls,
191 * @param op the operation this callback corresponds to 191 * @param op the operation this callback corresponds to
192 * @param pinfo the result; will be NULL if the operation has failed 192 * @param pinfo the result; will be NULL if the operation has failed
193 * @param emsg error message if the operation has failed; 193 * @param emsg error message if the operation has failed;
194 * NULL if the operation is successfull 194 * NULL if the operation is successful
195 */ 195 */
196static void 196static void
197pi_cb (void *cls, 197pi_cb (void *cls,
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c
index 95a6bf76f..26d2553e0 100644
--- a/src/testbed/testbed_api_hosts.c
+++ b/src/testbed/testbed_api_hosts.c
@@ -1044,7 +1044,7 @@ clear_msg (void *cls, int result)
1044 1044
1045/** 1045/**
1046 * Callback that will be called when the helper process dies. This is not called 1046 * Callback that will be called when the helper process dies. This is not called
1047 * when the helper process is stoped using GNUNET_HELPER_stop() 1047 * when the helper process is stopped using GNUNET_HELPER_stop()
1048 * 1048 *
1049 * @param cls the closure from GNUNET_HELPER_start() 1049 * @param cls the closure from GNUNET_HELPER_start()
1050 */ 1050 */
diff --git a/src/testbed/testbed_api_operations.c b/src/testbed/testbed_api_operations.c
index ae85e0842..a23f8c666 100644
--- a/src/testbed/testbed_api_operations.c
+++ b/src/testbed/testbed_api_operations.c
@@ -36,7 +36,7 @@
36#define ADAPTIVE_QUEUE_DEFAULT_HISTORY 40 36#define ADAPTIVE_QUEUE_DEFAULT_HISTORY 40
37 37
38/** 38/**
39 * The number of parallel opeartions we start with by default for adaptive 39 * The number of parallel operations we start with by default for adaptive
40 * queues 40 * queues
41 */ 41 */
42#define ADAPTIVE_QUEUE_DEFAULT_MAX_ACTIVE 4 42#define ADAPTIVE_QUEUE_DEFAULT_MAX_ACTIVE 4
@@ -213,7 +213,7 @@ struct OperationQueue
213 struct FeedbackCtx *fctx; 213 struct FeedbackCtx *fctx;
214 214
215 /** 215 /**
216 * The type of this opeartion queue 216 * The type of this operation queue
217 */ 217 */
218 enum OperationQueueType type; 218 enum OperationQueueType type;
219 219
@@ -232,7 +232,7 @@ struct OperationQueue
232 232
233 /** 233 /**
234 * The number of resources occupied by failed operations in the current shot. 234 * The number of resources occupied by failed operations in the current shot.
235 * This is only relavant if the operation queue is of type 235 * This is only relevant if the operation queue is of type
236 * #OPERATION_QUEUE_TYPE_ADAPTIVE 236 * #OPERATION_QUEUE_TYPE_ADAPTIVE
237 */ 237 */
238 unsigned int overload; 238 unsigned int overload;
@@ -1272,7 +1272,7 @@ GNUNET_TESTBED_operation_inactivate_ (struct GNUNET_TESTBED_Operation *op)
1272 1272
1273 1273
1274/** 1274/**
1275 * Marks and inactive operation as active. This fuction should be called to 1275 * Marks and inactive operation as active. This function should be called to
1276 * ensure that the oprelease callback will not be called until it is either 1276 * ensure that the oprelease callback will not be called until it is either
1277 * marked as inactive or released. 1277 * marked as inactive or released.
1278 * 1278 *
diff --git a/src/testbed/testbed_api_statistics.c b/src/testbed/testbed_api_statistics.c
index 7fe47d2a0..e800baa73 100644
--- a/src/testbed/testbed_api_statistics.c
+++ b/src/testbed/testbed_api_statistics.c
@@ -145,7 +145,7 @@ static struct OperationQueue *no_wait_queue;
145/** 145/**
146 * Call statistics operation completion. We call it in a separate task because 146 * Call statistics operation completion. We call it in a separate task because
147 * the iteration_completion_cb() cannot destroy statistics handle which will be 147 * the iteration_completion_cb() cannot destroy statistics handle which will be
148 * the case if the user calles GNUNET_TESTBED_operation_done() on the 148 * the case if the user calls GNUNET_TESTBED_operation_done() on the
149 * get_statistics operation. 149 * get_statistics operation.
150 * 150 *
151 * @param cls the GetStatsContext 151 * @param cls the GetStatsContext
diff --git a/src/testbed/testbed_api_test.c b/src/testbed/testbed_api_test.c
index dd43cf2f6..d9eb384ba 100644
--- a/src/testbed/testbed_api_test.c
+++ b/src/testbed/testbed_api_test.c
@@ -98,7 +98,7 @@ run (void *cls, char *const *args, const char *cfgfile,
98 * the program is stopped without 'master' ever being run. 98 * the program is stopped without 'master' ever being run.
99 * 99 *
100 * NOTE: this function should be called from 'main', NOT from 100 * NOTE: this function should be called from 'main', NOT from
101 * within a GNUNET_SCHEDULER-loop. This function will initialze 101 * within a GNUNET_SCHEDULER-loop. This function will initialize
102 * the scheduler loop, the testbed and then pass control to 102 * the scheduler loop, the testbed and then pass control to
103 * 'master'. 103 * 'master'.
104 * 104 *
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c
index 1aa344e99..e9b9979ce 100644
--- a/src/testbed/testbed_api_testbed.c
+++ b/src/testbed/testbed_api_testbed.c
@@ -135,7 +135,7 @@ enum State
135 135
136 136
137/** 137/**
138 * Context for host compability checks 138 * Context for host compatibility checks
139 */ 139 */
140struct CompatibilityCheckContext 140struct CompatibilityCheckContext
141{ 141{
@@ -145,7 +145,7 @@ struct CompatibilityCheckContext
145 struct GNUNET_TESTBED_RunHandle *rc; 145 struct GNUNET_TESTBED_RunHandle *rc;
146 146
147 /** 147 /**
148 * Handle for the compability check 148 * Handle for the compatibility check
149 */ 149 */
150 struct GNUNET_TESTBED_HostHabitableCheckHandle *h; 150 struct GNUNET_TESTBED_HostHabitableCheckHandle *h;
151 151
@@ -307,7 +307,7 @@ struct GNUNET_TESTBED_RunHandle
307 unsigned int num_peers; 307 unsigned int num_peers;
308 308
309 /** 309 /**
310 * Expected overlay connects. Should be zero if no topology is relavant 310 * Expected overlay connects. Should be zero if no topology is relevant
311 */ 311 */
312 unsigned int num_oc; 312 unsigned int num_oc;
313 313
@@ -1043,12 +1043,12 @@ register_hosts (void *cls)
1043 1043
1044 1044
1045/** 1045/**
1046 * Callback to signal successfull startup of the controller process 1046 * Callback to signal successful startup of the controller process
1047 * 1047 *
1048 * @param cls the closure from GNUNET_TESTBED_controller_start() 1048 * @param cls the closure from GNUNET_TESTBED_controller_start()
1049 * @param cfg the configuration with which the controller has been started; 1049 * @param cfg the configuration with which the controller has been started;
1050 * NULL if status is not GNUNET_OK 1050 * NULL if status is not GNUNET_OK
1051 * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, 1051 * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not,
1052 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case 1052 * GNUNET_TESTBED_controller_stop() shouldn't be called in this case
1053 */ 1053 */
1054static void 1054static void
diff --git a/src/testbed/testbed_api_topology.c b/src/testbed/testbed_api_topology.c
index a9a340e99..0f7c0b15c 100644
--- a/src/testbed/testbed_api_topology.c
+++ b/src/testbed/testbed_api_topology.c
@@ -639,7 +639,7 @@ gen_topo_ring (struct TopologyContext *tc)
639 639
640/** 640/**
641 * Returns the number of links that are required to generate a 2d torus for the 641 * Returns the number of links that are required to generate a 2d torus for the
642 * given number of peers. Also returns the arrangment (number of rows and the 642 * given number of peers. Also returns the arrangement (number of rows and the
643 * length of each row) 643 * length of each row)
644 * 644 *
645 * @param num_peers number of peers 645 * @param num_peers number of peers
diff --git a/src/testing/testing_api_cmd_hello_world_birth.c b/src/testing/testing_api_cmd_hello_world_birth.c
index 2a5bded92..9d60059a5 100644
--- a/src/testing/testing_api_cmd_hello_world_birth.c
+++ b/src/testing/testing_api_cmd_hello_world_birth.c
@@ -95,16 +95,16 @@ hello_world_birth_run (void *cls,
95 struct GNUNET_TESTING_Interpreter *is) 95 struct GNUNET_TESTING_Interpreter *is)
96{ 96{
97 struct HelloWorldBirthState *hbs = cls; 97 struct HelloWorldBirthState *hbs = cls;
98 struct GNUNET_TIME_Relative relativ; 98 struct GNUNET_TIME_Relative relative;
99 99
100 relativ = GNUNET_TIME_absolute_get_difference (*hbs->date, 100 relative = GNUNET_TIME_absolute_get_difference (*hbs->date,
101 GNUNET_TIME_absolute_get ()); 101 GNUNET_TIME_absolute_get ());
102 102
103 if (0 == relativ.rel_value_us % 10) 103 if (0 == relative.rel_value_us % 10)
104 { 104 {
105 hbs->what_am_i = "creature!"; 105 hbs->what_am_i = "creature!";
106 } 106 }
107 else if (0 == relativ.rel_value_us % 2) 107 else if (0 == relative.rel_value_us % 2)
108 { 108 {
109 hbs->what_am_i = "girl!"; 109 hbs->what_am_i = "girl!";
110 } 110 }
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index dbd86ba90..1b50b9ff5 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -220,7 +220,7 @@ run_finish_task_sync (void *cls)
220 - sync_state->start_finish_time.abs_value_us) 220 - sync_state->start_finish_time.abs_value_us)
221 { 221 {
222 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 222 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
223 "The command with label %s did not finish its asyncronous task in time.\n", 223 "The command with label %s did not finish its asynchronous task in time.\n",
224 cmd->label); 224 cmd->label);
225 is->result = GNUNET_SYSERR; 225 is->result = GNUNET_SYSERR;
226 GNUNET_SCHEDULER_shutdown (); 226 GNUNET_SCHEDULER_shutdown ();
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index 9dd2797df..a871d980f 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -1954,7 +1954,7 @@ queue_read (void *cls)
1954 wrong key for everything after the rekey; in that case, we have 1954 wrong key for everything after the rekey; in that case, we have
1955 to re-do the decryption at 'total' instead of at 'max'. 1955 to re-do the decryption at 'total' instead of at 'max'.
1956 However, we have to take into account that the plaintext buffer may have 1956 However, we have to take into account that the plaintext buffer may have
1957 already contained data and not jumpt too far ahead in the ciphertext. 1957 already contained data and not jumped too far ahead in the ciphertext.
1958 If there is no rekey and the last message is incomplete (max > total), 1958 If there is no rekey and the last message is incomplete (max > total),
1959 it is safe to keep the decryption so we shift by 'max' */ 1959 it is safe to keep the decryption so we shift by 'max' */
1960 if (GNUNET_YES == queue->rekeyed) 1960 if (GNUNET_YES == queue->rekeyed)
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c
index d75f4ae00..fa9bb5d0a 100644
--- a/src/transport/gnunet-communicator-udp.c
+++ b/src/transport/gnunet-communicator-udp.c
@@ -626,7 +626,7 @@ struct ReceiverAddress
626 int rekeying; 626 int rekeying;
627 627
628 /** 628 /**
629 * Numer of kce we retain for sending the rekeying shared secret. 629 * Number of kce we retain for sending the rekeying shared secret.
630 */ 630 */
631 int number_rekeying_kce; 631 int number_rekeying_kce;
632 632
@@ -1130,7 +1130,7 @@ sender_destroy (struct SenderAddress *sender)
1130 * 1130 *
1131 * @param msec master secret for calculation 1131 * @param msec master secret for calculation
1132 * @param serial number for the @a smac calculation 1132 * @param serial number for the @a smac calculation
1133 * @param key[out] where to write the decrption key 1133 * @param key[out] where to write the decryption key
1134 * @param iv[out] where to write the IV 1134 * @param iv[out] where to write the IV
1135 */ 1135 */
1136static void 1136static void
@@ -1235,7 +1235,7 @@ check_timeouts (void *cls)
1235 1235
1236 1236
1237/** 1237/**
1238 * Calcualte cmac from master in @a ss. 1238 * Calculate cmac from master in @a ss.
1239 * 1239 *
1240 * @param ss[in,out] data structure to complete 1240 * @param ss[in,out] data structure to complete
1241 */ 1241 */
@@ -1811,7 +1811,7 @@ kce_generate_rekey_cb (void *cls)
1811 * recently). 1811 * recently).
1812 * 1812 *
1813 * @param ss shared secret to generate ACKs for 1813 * @param ss shared secret to generate ACKs for
1814 * @param intial The SharedSecret came with initial KX. 1814 * @param initial The SharedSecret came with initial KX.
1815 */ 1815 */
1816static void 1816static void
1817consider_ss_ack (struct SharedSecret *ss, int initial) 1817consider_ss_ack (struct SharedSecret *ss, int initial)
@@ -1866,7 +1866,7 @@ consider_ss_ack (struct SharedSecret *ss, int initial)
1866 ack.acks_available = ss->sender->acks_available; 1866 ack.acks_available = ss->sender->acks_available;
1867 ack.cmac = ss_tell->cmac; 1867 ack.cmac = ss_tell->cmac;
1868 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1868 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1869 "Notifying transport of UDPAck %s with intial %u and master %s\n", 1869 "Notifying transport of UDPAck %s with initial %u and master %s\n",
1870 GNUNET_i2s_full (&ss_tell->sender->target), 1870 GNUNET_i2s_full (&ss_tell->sender->target),
1871 initial, 1871 initial,
1872 GNUNET_h2s (&(ss_tell->master))); 1872 GNUNET_h2s (&(ss_tell->master)));
@@ -2486,7 +2486,7 @@ udp_address_to_sockaddr (const char *bindto, socklen_t *sock_len)
2486 colon = strrchr (cp, ':'); 2486 colon = strrchr (cp, ':');
2487 if (NULL != colon) 2487 if (NULL != colon)
2488 { 2488 {
2489 /* interpet value after colon as port */ 2489 /* interpret value after colon as port */
2490 *colon = '\0'; 2490 *colon = '\0';
2491 colon++; 2491 colon++;
2492 if (1 == sscanf (colon, "%u%1s", &port, dummy)) 2492 if (1 == sscanf (colon, "%u%1s", &port, dummy))
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index ef3a6292b..019f3914f 100644
--- a/src/transport/gnunet-helper-transport-bluetooth.c
+++ b/src/transport/gnunet-helper-transport-bluetooth.c
@@ -416,7 +416,7 @@ do_align:
416 else 416 else
417 { 417 {
418 /* need to copy to private buffer to align; 418 /* need to copy to private buffer to align;
419 * yes, we go a bit more spagetti than usual here */ 419 * yes, we go a bit more spaghetti than usual here */
420 goto do_align; 420 goto do_align;
421 } 421 }
422 } 422 }
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index d90565c9c..72dd8b594 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -983,7 +983,7 @@ do_align:
983 else 983 else
984 { 984 {
985 /* need to copy to private buffer to align; 985 /* need to copy to private buffer to align;
986 * yes, we go a bit more spagetti than usual here */ 986 * yes, we go a bit more spaghetti than usual here */
987 goto do_align; 987 goto do_align;
988 } 988 }
989 } 989 }
@@ -1093,7 +1093,7 @@ ieee80211_radiotap_iterator_init (struct
1093 iterator->arg += sizeof(uint32_t); 1093 iterator->arg += sizeof(uint32_t);
1094 /* 1094 /*
1095 * no need to check again for blowing past stated radiotap 1095 * no need to check again for blowing past stated radiotap
1096 * header length, becuase ieee80211_radiotap_iterator_next 1096 * header length, because ieee80211_radiotap_iterator_next
1097 * checks it before it is dereferenced 1097 * checks it before it is dereferenced
1098 */} 1098 */}
1099 /* we are all initialized happily */ 1099 /* we are all initialized happily */
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index cbf795eea..613477220 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -47,7 +47,7 @@
47 * - When we passively learned DV (with unconfirmed freshness), we 47 * - When we passively learned DV (with unconfirmed freshness), we
48 * right now add the path to our list but with a zero path_valid_until 48 * right now add the path to our list but with a zero path_valid_until
49 * time and only use it for unconfirmed routes. However, we could consider 49 * time and only use it for unconfirmed routes. However, we could consider
50 * triggering an explicit validation mechansim ourselves, specifically routing 50 * triggering an explicit validation mechanism ourselves, specifically routing
51 * a challenge-response message over the path [ROUTING] 51 * a challenge-response message over the path [ROUTING]
52 * = if available, try to confirm unconfirmed DV paths when trying to establish 52 * = if available, try to confirm unconfirmed DV paths when trying to establish
53 * virtual link for a `struct IncomingRequest`. (i.e. if DVH is 53 * virtual link for a `struct IncomingRequest`. (i.e. if DVH is
@@ -83,7 +83,7 @@
83 83
84/** 84/**
85 * Maximum number of messages we acknowledge together in one 85 * Maximum number of messages we acknowledge together in one
86 * cummulative ACK. Larger values may save a bit of bandwidth. 86 * cumulative ACK. Larger values may save a bit of bandwidth.
87 */ 87 */
88#define MAX_CUMMULATIVE_ACKS 64 88#define MAX_CUMMULATIVE_ACKS 64
89 89
@@ -453,7 +453,7 @@ struct TransportReliabilityBoxMessage
453struct TransportCummulativeAckPayloadP 453struct TransportCummulativeAckPayloadP
454{ 454{
455 /** 455 /**
456 * How long was the ACK delayed for generating cummulative ACKs? 456 * How long was the ACK delayed for generating cumulative ACKs?
457 * Used to calculate the correct network RTT by taking the receipt 457 * Used to calculate the correct network RTT by taking the receipt
458 * time of the ack minus the transmission time of the sender minus 458 * time of the ack minus the transmission time of the sender minus
459 * this value. 459 * this value.
@@ -514,7 +514,7 @@ struct TransportFragmentBoxMessage
514 514
515 /** 515 /**
516 * Unique ID of this fragment (and fragment transmission!). Will 516 * Unique ID of this fragment (and fragment transmission!). Will
517 * change even if a fragement is retransmitted to make each 517 * change even if a fragment is retransmitted to make each
518 * transmission attempt unique! If a client receives a duplicate 518 * transmission attempt unique! If a client receives a duplicate
519 * fragment (same @e frag_off for same @a msg_uuid, it must send 519 * fragment (same @e frag_off for same @a msg_uuid, it must send
520 * #GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_ACK immediately. 520 * #GNUNET_MESSAGE_TYPE_TRANSPORT_RELIABILITY_ACK immediately.
@@ -1944,7 +1944,7 @@ struct Neighbour
1944 struct GNUNET_TIME_Absolute last_dv_learn_monotime; 1944 struct GNUNET_TIME_Absolute last_dv_learn_monotime;
1945 1945
1946 /** 1946 /**
1947 * Do we have the lastest value for @e last_dv_learn_monotime from 1947 * Do we have the latest value for @e last_dv_learn_monotime from
1948 * PEERSTORE yet, or are we still waiting for a reply of PEERSTORE? 1948 * PEERSTORE yet, or are we still waiting for a reply of PEERSTORE?
1949 */ 1949 */
1950 int dv_monotime_available; 1950 int dv_monotime_available;
@@ -2238,7 +2238,7 @@ struct AcknowledgementCummulator
2238 struct TransportCummulativeAckPayload ack_uuids[MAX_CUMMULATIVE_ACKS]; 2238 struct TransportCummulativeAckPayload ack_uuids[MAX_CUMMULATIVE_ACKS];
2239 2239
2240 /** 2240 /**
2241 * Task scheduled either to transmit the cummulative ACK message, 2241 * Task scheduled either to transmit the cumulative ACK message,
2242 * or to clean up this data structure after extended periods of 2242 * or to clean up this data structure after extended periods of
2243 * inactivity (if @e num_acks is zero). 2243 * inactivity (if @e num_acks is zero).
2244 */ 2244 */
@@ -2657,7 +2657,7 @@ static struct GNUNET_CONTAINER_MultiPeerMap *backtalkers;
2657 2657
2658/** 2658/**
2659 * Map from PIDs to `struct AcknowledgementCummulator`s. 2659 * Map from PIDs to `struct AcknowledgementCummulator`s.
2660 * Here we track the cummulative ACKs for transmission. 2660 * Here we track the cumulative ACKs for transmission.
2661 */ 2661 */
2662static struct GNUNET_CONTAINER_MultiPeerMap *ack_cummulators; 2662static struct GNUNET_CONTAINER_MultiPeerMap *ack_cummulators;
2663 2663
@@ -2735,7 +2735,7 @@ static struct PendingAcknowledgement *pa_head;
2735static struct PendingAcknowledgement *pa_tail; 2735static struct PendingAcknowledgement *pa_tail;
2736 2736
2737/** 2737/**
2738 * List of incomming connections where we are trying 2738 * List of incoming connections where we are trying
2739 * to get a connection back established. Length 2739 * to get a connection back established. Length
2740 * kept in #ir_total. 2740 * kept in #ir_total.
2741 */ 2741 */
@@ -3888,10 +3888,10 @@ client_send_response (struct PendingMessage *pm)
3888 if (NULL != tc) 3888 if (NULL != tc)
3889 { 3889 {
3890 struct GNUNET_MQ_Envelope *env; 3890 struct GNUNET_MQ_Envelope *env;
3891 struct SendOkMessage *som; 3891 struct SendOkMessage *so_msg;
3892 3892
3893 env = GNUNET_MQ_msg (som, GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK); 3893 env = GNUNET_MQ_msg (so_msg, GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK);
3894 som->peer = vl->target; 3894 so_msg->peer = vl->target;
3895 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3895 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3896 "Confirming transmission of <%llu> to %s\n", 3896 "Confirming transmission of <%llu> to %s\n",
3897 pm->logging_uuid, 3897 pm->logging_uuid,
@@ -4713,7 +4713,7 @@ route_control_message_without_fc (const struct GNUNET_PeerIdentity *target,
4713 } 4713 }
4714 if ((NULL != n) && (NULL != dv)) 4714 if ((NULL != n) && (NULL != dv))
4715 options &= ~RMO_REDUNDANT; /* We will do one DV and one direct, that's 4715 options &= ~RMO_REDUNDANT; /* We will do one DV and one direct, that's
4716 enough for redunancy, so clear the flag. */ 4716 enough for redundancy, so clear the flag. */
4717 rtt1 = GNUNET_TIME_UNIT_FOREVER_REL; 4717 rtt1 = GNUNET_TIME_UNIT_FOREVER_REL;
4718 rtt2 = GNUNET_TIME_UNIT_FOREVER_REL; 4718 rtt2 = GNUNET_TIME_UNIT_FOREVER_REL;
4719 if (NULL != n) 4719 if (NULL != n)
@@ -4862,7 +4862,7 @@ check_vl_transmission (struct VirtualLink *vl)
4862 vl->outbound_fc_window_size) 4862 vl->outbound_fc_window_size)
4863 { 4863 {
4864 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 4864 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
4865 "Stalled transmision on VL %s due to flow control: %llu < %llu\n", 4865 "Stalled transmission on VL %s due to flow control: %llu < %llu\n",
4866 GNUNET_i2s (&vl->target), 4866 GNUNET_i2s (&vl->target),
4867 (unsigned long long) vl->outbound_fc_window_size, 4867 (unsigned long long) vl->outbound_fc_window_size,
4868 (unsigned long long) (pm->bytes_msg 4868 (unsigned long long) (pm->bytes_msg
@@ -5286,7 +5286,7 @@ handle_raw_message (void *cls, const struct GNUNET_MessageHeader *mh)
5286 it. Thus logging as error for now. */ 5286 it. Thus logging as error for now. */
5287 GNUNET_break_op (0); 5287 GNUNET_break_op (0);
5288 GNUNET_STATISTICS_update (GST_stats, 5288 GNUNET_STATISTICS_update (GST_stats,
5289 "# CORE messages droped (virtual link still down)", 5289 "# CORE messages dropped (virtual link still down)",
5290 1, 5290 1,
5291 GNUNET_NO); 5291 GNUNET_NO);
5292 5292
@@ -5296,7 +5296,7 @@ handle_raw_message (void *cls, const struct GNUNET_MessageHeader *mh)
5296 if (vl->incoming_fc_window_size_ram > UINT_MAX - size) 5296 if (vl->incoming_fc_window_size_ram > UINT_MAX - size)
5297 { 5297 {
5298 GNUNET_STATISTICS_update (GST_stats, 5298 GNUNET_STATISTICS_update (GST_stats,
5299 "# CORE messages droped (FC arithmetic overflow)", 5299 "# CORE messages dropped (FC arithmetic overflow)",
5300 1, 5300 1,
5301 GNUNET_NO); 5301 GNUNET_NO);
5302 5302
@@ -5306,7 +5306,7 @@ handle_raw_message (void *cls, const struct GNUNET_MessageHeader *mh)
5306 if (vl->incoming_fc_window_size_ram + size > vl->available_fc_window_size) 5306 if (vl->incoming_fc_window_size_ram + size > vl->available_fc_window_size)
5307 { 5307 {
5308 GNUNET_STATISTICS_update (GST_stats, 5308 GNUNET_STATISTICS_update (GST_stats,
5309 "# CORE messages droped (FC window overflow)", 5309 "# CORE messages dropped (FC window overflow)",
5310 1, 5310 1,
5311 GNUNET_NO); 5311 GNUNET_NO);
5312 finish_cmc_handling (cmc); 5312 finish_cmc_handling (cmc);
@@ -5397,7 +5397,7 @@ check_fragment_box (void *cls, const struct TransportFragmentBoxMessage *fb)
5397 5397
5398 5398
5399/** 5399/**
5400 * Clean up an idle cummulative acknowledgement data structure. 5400 * Clean up an idle cumulative acknowledgement data structure.
5401 * 5401 *
5402 * @param cls a `struct AcknowledgementCummulator *` 5402 * @param cls a `struct AcknowledgementCummulator *`
5403 */ 5403 */
@@ -5416,7 +5416,7 @@ destroy_ack_cummulator (void *cls)
5416 5416
5417 5417
5418/** 5418/**
5419 * Do the transmission of a cummulative acknowledgement now. 5419 * Do the transmission of a cumulative acknowledgement now.
5420 * 5420 *
5421 * @param cls a `struct AcknowledgementCummulator *` 5421 * @param cls a `struct AcknowledgementCummulator *`
5422 */ 5422 */
@@ -5674,7 +5674,7 @@ handle_fragment_box (void *cls, const struct TransportFragmentBoxMessage *fb)
5674 } 5674 }
5675 } 5675 }
5676 5676
5677 /* Compute cummulative ACK */ 5677 /* Compute cumulative ACK */
5678 cdelay = GNUNET_TIME_absolute_get_duration (rc->last_frag); 5678 cdelay = GNUNET_TIME_absolute_get_duration (rc->last_frag);
5679 cdelay = GNUNET_TIME_relative_multiply (cdelay, rc->msg_missing / fsize); 5679 cdelay = GNUNET_TIME_relative_multiply (cdelay, rc->msg_missing / fsize);
5680 if (0 == rc->msg_missing) 5680 if (0 == rc->msg_missing)
@@ -5911,7 +5911,7 @@ completed_pending_message (struct PendingMessage *pm)
5911 * The @a pa was acknowledged, process the acknowledgement. 5911 * The @a pa was acknowledged, process the acknowledgement.
5912 * 5912 *
5913 * @param pa the pending acknowledgement that was satisfied 5913 * @param pa the pending acknowledgement that was satisfied
5914 * @param ack_delay artificial delay from cummulative acks created by the 5914 * @param ack_delay artificial delay from cumulative acks created by the
5915 * other peer 5915 * other peer
5916 */ 5916 */
5917static void 5917static void
@@ -7353,7 +7353,7 @@ handle_dv_box (void *cls, const struct TransportDVBoxMessage *dvb)
7353 path = tmp; 7353 path = tmp;
7354 } 7354 }
7355 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 7355 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
7356 "Received DVBox with remainig path %s\n", 7356 "Received DVBox with remaining path %s\n",
7357 path); 7357 path);
7358 GNUNET_free (path); 7358 GNUNET_free (path);
7359 } 7359 }
@@ -7418,7 +7418,7 @@ handle_dv_box (void *cls, const struct TransportDVBoxMessage *dvb)
7418 dv_hmac (&key, &hmac, hdr, hdr_len); 7418 dv_hmac (&key, &hmac, hdr, hdr_len);
7419 if (0 != GNUNET_memcmp (&hmac, &dvb->hmac)) 7419 if (0 != GNUNET_memcmp (&hmac, &dvb->hmac))
7420 { 7420 {
7421 /* HMAC missmatch, disard! */ 7421 /* HMAC mismatch, discard! */
7422 GNUNET_break_op (0); 7422 GNUNET_break_op (0);
7423 finish_cmc_handling (cmc); 7423 finish_cmc_handling (cmc);
7424 return; 7424 return;
@@ -7493,7 +7493,7 @@ handle_dv_box (void *cls, const struct TransportDVBoxMessage *dvb)
7493 &ppay.sender_sig, 7493 &ppay.sender_sig,
7494 &ppay.sender.public_key)) 7494 &ppay.sender.public_key))
7495 { 7495 {
7496 /* Signature invalid, disard! */ 7496 /* Signature invalid, discard! */
7497 GNUNET_break_op (0); 7497 GNUNET_break_op (0);
7498 finish_cmc_handling (cmc); 7498 finish_cmc_handling (cmc);
7499 return; 7499 return;
@@ -8210,7 +8210,7 @@ handle_flow_control (void *cls, const struct TransportFlowControlMessage *fc)
8210 % FC_NO_CHANGE_REPLY_PROBABILITY)) 8210 % FC_NO_CHANGE_REPLY_PROBABILITY))
8211 { 8211 {
8212 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 8212 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
8213 "Consider re-sending our FC message, as clearly the ther peer's idea of the window is not up-to-date (%llu vs %llu)\n", 8213 "Consider re-sending our FC message, as clearly the other peer's idea of the window is not up-to-date (%llu vs %llu)\n",
8214 (unsigned long long) wnd, 8214 (unsigned long long) wnd,
8215 (unsigned long long) vl->incoming_fc_window_size); 8215 (unsigned long long) vl->incoming_fc_window_size);
8216 consider_sending_fc (vl); 8216 consider_sending_fc (vl);
@@ -8563,7 +8563,7 @@ reliability_box_message (struct Queue *queue,
8563/** 8563/**
8564 * Change the value of the `next_attempt` field of @a pm 8564 * Change the value of the `next_attempt` field of @a pm
8565 * to @a next_attempt and re-order @a pm in the transmission 8565 * to @a next_attempt and re-order @a pm in the transmission
8566 * list as required by the new timestmap. 8566 * list as required by the new timestamp.
8567 * 8567 *
8568 * @param pm a pending message to update 8568 * @param pm a pending message to update
8569 * @param next_attempt timestamp to use 8569 * @param next_attempt timestamp to use
@@ -8755,7 +8755,7 @@ select_best_pending_from_link (struct PendingMessageScoreContext *sc,
8755 10; /* increase weight, favors 'sc->best', which is low latency */ 8755 10; /* increase weight, favors 'sc->best', which is low latency */
8756 if (0 != queue->mtu) 8756 if (0 != queue->mtu)
8757 { 8757 {
8758 /* Grant bonus if we are bellow MTU, larger bonus the closer we will 8758 /* Grant bonus if we are below MTU, larger bonus the closer we will
8759 be to the MTU */ 8759 be to the MTU */
8760 if (queue->mtu > sc->real_overhead + sc->best->bytes_msg) 8760 if (queue->mtu > sc->real_overhead + sc->best->bytes_msg)
8761 sc_score -= queue->mtu - (sc->real_overhead + sc->best->bytes_msg); 8761 sc_score -= queue->mtu - (sc->real_overhead + sc->best->bytes_msg);
@@ -9645,7 +9645,9 @@ handle_add_queue_message (void *cls,
9645 if (NULL != queue) 9645 if (NULL != queue)
9646 { 9646 {
9647 neighbour = queue->neighbour; 9647 neighbour = queue->neighbour;
9648 } else { 9648 }
9649 else
9650 {
9649 neighbour = lookup_neighbour (&aqm->receiver); 9651 neighbour = lookup_neighbour (&aqm->receiver);
9650 if (NULL == neighbour) 9652 if (NULL == neighbour)
9651 { 9653 {
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index a819d82a5..24cc6464a 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -357,7 +357,7 @@ static struct TransportClient *sync_client;
357 357
358/** 358/**
359 * Peer identity that is all zeros, used as a way to indicate 359 * Peer identity that is all zeros, used as a way to indicate
360 * "all peers". Used for comparissons. 360 * "all peers". Used for comparisons.
361 */ 361 */
362static struct GNUNET_PeerIdentity all_zeros; 362static struct GNUNET_PeerIdentity all_zeros;
363 363
@@ -830,7 +830,7 @@ handle_client_send (void *cls, const struct OutboundMessage *obm)
830 830
831/** 831/**
832 * Take the given address and append it to the set of results sent back to 832 * Take the given address and append it to the set of results sent back to
833 * the client. This function may be called serveral times for a single 833 * the client. This function may be called several times for a single
834 * conversion. The last invocation will be with a @a address of 834 * conversion. The last invocation will be with a @a address of
835 * NULL and a @a res of #GNUNET_OK. Thus, to indicate conversion 835 * NULL and a @a res of #GNUNET_OK. Thus, to indicate conversion
836 * errors, the callback might be called first with @a address NULL and 836 * errors, the callback might be called first with @a address NULL and
@@ -877,7 +877,7 @@ transmit_address_to_client (void *cls, const char *buf, int res)
877 } 877 }
878 } 878 }
879 GNUNET_assert (GNUNET_OK == res); 879 GNUNET_assert (GNUNET_OK == res);
880 /* succesful conversion, append*/ 880 /* successful conversion, append*/
881 slen = strlen (buf) + 1; 881 slen = strlen (buf) + 1;
882 env = 882 env =
883 GNUNET_MQ_msg_extra (atsm, 883 GNUNET_MQ_msg_extra (atsm,
@@ -1545,7 +1545,7 @@ kill_session (const char *plugin_name, struct GNUNET_ATS_Session *session)
1545 1545
1546/** 1546/**
1547 * Black list check result for try_connect call 1547 * Black list check result for try_connect call
1548 * If connection to the peer is allowed request adddress and ??? 1548 * If connection to the peer is allowed request address and ???
1549 * 1549 *
1550 * @param cls the message 1550 * @param cls the message
1551 * @param peer the peer 1551 * @param peer the peer
@@ -1782,7 +1782,7 @@ plugin_env_address_change_notification (
1782 * 1782 *
1783 * @param cls closure 1783 * @param cls closure
1784 * @param address which address was the session for 1784 * @param address which address was the session for
1785 * @param session which session is being destoyed 1785 * @param session which session is being destroyed
1786 */ 1786 */
1787static void 1787static void
1788plugin_env_session_end (void *cls, 1788plugin_env_session_end (void *cls,
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index e5d670889..86161bd85 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -68,7 +68,7 @@ enum GNUNET_TRANSPORT_ValidationState
68 /** 68 /**
69 * Timeout for validation entry 69 * Timeout for validation entry
70 * 70 *
71 * A timeout occured during the validation process 71 * A timeout occurred during the validation process
72 */ 72 */
73 GNUNET_TRANSPORT_VS_TIMEOUT, 73 GNUNET_TRANSPORT_VS_TIMEOUT,
74 74
@@ -1361,7 +1361,7 @@ GST_validation_handle_address (const struct GNUNET_HELLO_Address *address)
1361 papi = GST_plugins_find (address->transport_name); 1361 papi = GST_plugins_find (address->transport_name);
1362 if (NULL == papi) 1362 if (NULL == papi)
1363 { 1363 {
1364 /* This plugin is currently unvailable ... ignore */ 1364 /* This plugin is currently unavailable ... ignore */
1365 GNUNET_log (GNUNET_ERROR_TYPE_INFO, 1365 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1366 "No plugin available for %s\n", 1366 "No plugin available for %s\n",
1367 address->transport_name); 1367 address->transport_name);
@@ -1807,7 +1807,7 @@ GST_validation_set_address_use (const struct GNUNET_HELLO_Address *address,
1807 ve->in_use = in_use; 1807 ve->in_use = in_use;
1808 if (GNUNET_YES == in_use) 1808 if (GNUNET_YES == in_use)
1809 { 1809 {
1810 /* from now on, higher frequeny, so reschedule now */ 1810 /* from now on, higher frequency, so reschedule now */
1811 if (NULL != ve->revalidation_task) 1811 if (NULL != ve->revalidation_task)
1812 GNUNET_SCHEDULER_cancel (ve->revalidation_task); 1812 GNUNET_SCHEDULER_cancel (ve->revalidation_task);
1813 ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address, 1813 ve->revalidation_task = GNUNET_SCHEDULER_add_now (&revalidate_address,
diff --git a/src/transport/gnunet-transport-profiler.c b/src/transport/gnunet-transport-profiler.c
index 81678fa20..6e5204e28 100644
--- a/src/transport/gnunet-transport-profiler.c
+++ b/src/transport/gnunet-transport-profiler.c
@@ -204,7 +204,7 @@ shutdown_task (void *cls)
204 204
205 if (benchmark_send) 205 if (benchmark_send)
206 { 206 {
207 /* First iteration to calculcate avg and stddev */ 207 /* First iteration to calculate avg and stddev */
208 iterations = 0; 208 iterations = 0;
209 avg_duration = 0; 209 avg_duration = 0;
210 avg_rate = 0.0; 210 avg_rate = 0.0;
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c
index 0d71e1ff9..b5ad43770 100644
--- a/src/transport/gnunet-transport.c
+++ b/src/transport/gnunet-transport.c
@@ -78,7 +78,7 @@ struct ValidationResolutionContext
78 struct GNUNET_TIME_Absolute next_validation; 78 struct GNUNET_TIME_Absolute next_validation;
79 79
80 /** 80 /**
81 * Tranport conversion handle 81 * Transport conversion handle
82 */ 82 */
83 struct GNUNET_TRANSPORT_AddressToStringContext *asc; 83 struct GNUNET_TRANSPORT_AddressToStringContext *asc;
84 84
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 219fae57b..18bfcc054 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -639,7 +639,7 @@ client_schedule (struct HTTP_Client_Plugin *plugin,
639 639
640#if VERBOSE_CURL 640#if VERBOSE_CURL
641/** 641/**
642 * Loggging function 642 * Logging function
643 * 643 *
644 * @param curl the curl easy handle 644 * @param curl the curl easy handle
645 * @param type message type 645 * @param type message type
@@ -1306,7 +1306,7 @@ client_run (void *cls)
1306 int msgs_left; 1306 int msgs_left;
1307 1307
1308 plugin->client_perform_task = NULL; 1308 plugin->client_perform_task = NULL;
1309 /* While data are available or timeouts occured */ 1309 /* While data are available or timeouts occurred */
1310 do 1310 do
1311 { 1311 {
1312 running = 0; 1312 running = 0;
@@ -1390,7 +1390,7 @@ client_run (void *cls)
1390 break; 1390 break;
1391 1391
1392 case H_TMP_RECONNECT_REQUIRED: 1392 case H_TMP_RECONNECT_REQUIRED:
1393 /* Transport called send while disconnect in progess, reconnect */ 1393 /* Transport called send while disconnect in progress, reconnect */
1394 if (GNUNET_SYSERR == client_connect_put (s)) 1394 if (GNUNET_SYSERR == client_connect_put (s))
1395 { 1395 {
1396 /* Reconnect failed, disconnect session */ 1396 /* Reconnect failed, disconnect session */
@@ -2478,7 +2478,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
2478 if (NULL == env->receive) 2478 if (NULL == env->receive)
2479 { 2479 {
2480 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully 2480 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
2481 initialze the plugin or the API */ 2481 initialize the plugin or the API */
2482 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions); 2482 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
2483 api->cls = NULL; 2483 api->cls = NULL;
2484 api->address_to_string = &http_client_plugin_address_to_string; 2484 api->address_to_string = &http_client_plugin_address_to_string;
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index 0e3778837..75bf8b74a 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -210,7 +210,7 @@ struct PrettyPrinterContext
210 struct GNUNET_SCHEDULER_Task *timeout_task; 210 struct GNUNET_SCHEDULER_Task *timeout_task;
211 211
212 /** 212 /**
213 * Splitted Address 213 * Split Address
214 */ 214 */
215 struct SplittedHTTPAddress *saddr; 215 struct SplittedHTTPAddress *saddr;
216 216
@@ -222,7 +222,7 @@ struct PrettyPrinterContext
222 /** 222 /**
223 * Was conversion successful 223 * Was conversion successful
224 */ 224 */
225 int sucess; 225 int success;
226 226
227 /** 227 /**
228 * Address options 228 * Address options
@@ -247,7 +247,7 @@ static struct PrettyPrinterContext *dll_ppc_tail;
247 * to override the address again. 247 * to override the address again.
248 * 248 *
249 * @param plugin the name of the plugin 249 * @param plugin the name of the plugin
250 * @param saddr the splitted http address 250 * @param saddr the split http address
251 * @param options address options 251 * @param options address options
252 * @param dnsresult dns name to include in address 252 * @param dnsresult dns name to include in address
253 * @return string representing the same address or NULL on error 253 * @return string representing the same address or NULL on error
@@ -287,12 +287,12 @@ http_common_dns_reverse_lookup_cb (void *cls, const char *hostname)
287 http_common_plugin_dnsresult_to_address (ppc->plugin, ppc->saddr, 287 http_common_plugin_dnsresult_to_address (ppc->plugin, ppc->saddr,
288 ppc->options, 288 ppc->options,
289 hostname), GNUNET_OK); 289 hostname), GNUNET_OK);
290 ppc->sucess = GNUNET_YES; 290 ppc->success = GNUNET_YES;
291 } 291 }
292 else 292 else
293 { 293 {
294 ppc->asc (ppc->asc_cls, NULL, 294 ppc->asc (ppc->asc_cls, NULL,
295 (GNUNET_NO == ppc->sucess) ? GNUNET_SYSERR : GNUNET_OK); 295 (GNUNET_NO == ppc->success) ? GNUNET_SYSERR : GNUNET_OK);
296 296
297 GNUNET_CONTAINER_DLL_remove (dll_ppc_head, dll_ppc_tail, ppc); 297 GNUNET_CONTAINER_DLL_remove (dll_ppc_head, dll_ppc_tail, ppc);
298 http_clean_splitted (ppc->saddr); 298 http_clean_splitted (ppc->saddr);
@@ -355,13 +355,13 @@ http_common_dns_ip_lookup_cb (void *cls,
355 GNUNET_a2s (addr, 355 GNUNET_a2s (addr,
356 addrlen)), 356 addrlen)),
357 GNUNET_OK); 357 GNUNET_OK);
358 ppc->sucess = GNUNET_YES; 358 ppc->success = GNUNET_YES;
359 ppc->asc (ppc->asc_cls, GNUNET_a2s (addr, addrlen), GNUNET_OK); 359 ppc->asc (ppc->asc_cls, GNUNET_a2s (addr, addrlen), GNUNET_OK);
360 } 360 }
361 else 361 else
362 { 362 {
363 ppc->asc (ppc->asc_cls, NULL, 363 ppc->asc (ppc->asc_cls, NULL,
364 (GNUNET_NO == ppc->sucess) ? GNUNET_SYSERR : GNUNET_OK); 364 (GNUNET_NO == ppc->success) ? GNUNET_SYSERR : GNUNET_OK);
365 365
366 GNUNET_CONTAINER_DLL_remove (dll_ppc_head, dll_ppc_tail, ppc); 366 GNUNET_CONTAINER_DLL_remove (dll_ppc_head, dll_ppc_tail, ppc);
367 GNUNET_free (ppc->plugin); 367 GNUNET_free (ppc->plugin);
@@ -383,7 +383,7 @@ http_common_dns_ip_lookup (const char *name,
383 struct PrettyPrinterContext *ppc; 383 struct PrettyPrinterContext *ppc;
384 384
385 ppc = GNUNET_new (struct PrettyPrinterContext); 385 ppc = GNUNET_new (struct PrettyPrinterContext);
386 ppc->sucess = GNUNET_NO; 386 ppc->success = GNUNET_NO;
387 ppc->saddr = saddr; 387 ppc->saddr = saddr;
388 ppc->asc = asc; 388 ppc->asc = asc;
389 ppc->asc_cls = asc_cls; 389 ppc->asc_cls = asc_cls;
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 6e95ca00c..78b030e9a 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -2569,7 +2569,7 @@ server_remove_address (void *cls,
2569 * the previous (now invalid) one 2569 * the previous (now invalid) one
2570 * @param ac address class the address belongs to 2570 * @param ac address class the address belongs to
2571 * @param addr either the previous or the new public IP address 2571 * @param addr either the previous or the new public IP address
2572 * @param addrlen actual lenght of the address 2572 * @param addrlen actual length of the address
2573 */ 2573 */
2574static void 2574static void
2575server_nat_port_map_callback (void *cls, 2575server_nat_port_map_callback (void *cls,
@@ -3512,7 +3512,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
3512 if (NULL == env->receive) 3512 if (NULL == env->receive)
3513 { 3513 {
3514 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully 3514 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
3515 initialze the plugin or the API */ 3515 initialize the plugin or the API */
3516 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions); 3516 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
3517 api->cls = NULL; 3517 api->cls = NULL;
3518 api->address_to_string = &http_server_plugin_address_to_string; 3518 api->address_to_string = &http_server_plugin_address_to_string;
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 8378a64dd..ac4cc672f 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -164,7 +164,7 @@ typedef int (*GNUNET_CONNECTION_AccessCheck) (
164 * 164 *
165 * @param cls closure 165 * @param cls closure
166 * @param buf pointer to received data 166 * @param buf pointer to received data
167 * @param available number of bytes availabe in "buf", 167 * @param available number of bytes available in "buf",
168 * possibly 0 (on errors) 168 * possibly 0 (on errors)
169 * @param addr address of the sender 169 * @param addr address of the sender
170 * @param addrlen size of addr 170 * @param addrlen size of addr
@@ -3674,7 +3674,7 @@ libgnunet_plugin_transport_tcp_init (void *cls)
3674 if (NULL == env->receive) 3674 if (NULL == env->receive)
3675 { 3675 {
3676 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully 3676 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
3677 initialze the plugin or the API */ 3677 initialize the plugin or the API */
3678 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions); 3678 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
3679 api->cls = NULL; 3679 api->cls = NULL;
3680 api->address_pretty_printer = &tcp_plugin_address_pretty_printer; 3680 api->address_pretty_printer = &tcp_plugin_address_pretty_printer;
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c
index 239f32f4a..c39c72178 100644
--- a/src/transport/plugin_transport_template.c
+++ b/src/transport/plugin_transport_template.c
@@ -516,7 +516,7 @@ libgnunet_plugin_transport_template_init (void *cls)
516 if (NULL == env->receive) 516 if (NULL == env->receive)
517 { 517 {
518 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully 518 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
519 initialze the plugin or the API */ 519 initialize the plugin or the API */
520 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions); 520 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
521 api->cls = NULL; 521 api->cls = NULL;
522 api->address_to_string = &template_plugin_address_to_string; 522 api->address_to_string = &template_plugin_address_to_string;
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 49e84dfe7..2db31caa3 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -2390,7 +2390,7 @@ read_process_ack (struct Plugin *plugin,
2390 2390
2391 2391
2392/** 2392/**
2393 * Message tokenizer has broken up an incomming message. Pass it on 2393 * Message tokenizer has broken up an incoming message. Pass it on
2394 * to the service. 2394 * to the service.
2395 * 2395 *
2396 * @param cls the `struct GNUNET_ATS_Session *` 2396 * @param cls the `struct GNUNET_ATS_Session *`
@@ -3605,7 +3605,7 @@ libgnunet_plugin_transport_udp_init (void *cls)
3605 if (NULL == env->receive) 3605 if (NULL == env->receive)
3606 { 3606 {
3607 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully 3607 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
3608 initialze the plugin or the API */ 3608 initialize the plugin or the API */
3609 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions); 3609 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
3610 api->cls = NULL; 3610 api->cls = NULL;
3611 api->address_pretty_printer = &udp_plugin_address_pretty_printer; 3611 api->address_pretty_printer = &udp_plugin_address_pretty_printer;
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index 2324914c9..269949a99 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -1729,7 +1729,7 @@ libgnunet_plugin_transport_unix_init (void *cls)
1729 if (NULL == env->receive) 1729 if (NULL == env->receive)
1730 { 1730 {
1731 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully 1731 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
1732 initialze the plugin or the API */ 1732 initialize the plugin or the API */
1733 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions); 1733 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
1734 api->cls = NULL; 1734 api->cls = NULL;
1735 api->address_pretty_printer = &unix_plugin_address_pretty_printer; 1735 api->address_pretty_printer = &unix_plugin_address_pretty_printer;
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index 1b2b6d0d2..138fb5080 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -470,7 +470,7 @@ struct Plugin
470 struct GNUNET_TRANSPORT_PluginEnvironment *env; 470 struct GNUNET_TRANSPORT_PluginEnvironment *env;
471 471
472 /** 472 /**
473 * Handle to helper process for priviledged operations. 473 * Handle to helper process for privileged operations.
474 */ 474 */
475 struct GNUNET_HELPER_Handle *suid_helper; 475 struct GNUNET_HELPER_Handle *suid_helper;
476 476
@@ -2262,7 +2262,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
2262 if (NULL == env->receive) 2262 if (NULL == env->receive)
2263 { 2263 {
2264 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully 2264 /* run in 'stub' mode (i.e. as part of gnunet-peerinfo), don't fully
2265 initialze the plugin or the API */ 2265 initialize the plugin or the API */
2266 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions); 2266 api = GNUNET_new (struct GNUNET_TRANSPORT_PluginFunctions);
2267 api->cls = NULL; 2267 api->cls = NULL;
2268 api->address_pretty_printer = &wlan_plugin_address_pretty_printer; 2268 api->address_pretty_printer = &wlan_plugin_address_pretty_printer;
diff --git a/src/transport/tcp_connection_legacy.c b/src/transport/tcp_connection_legacy.c
index 924362ef2..551e79055 100644
--- a/src/transport/tcp_connection_legacy.c
+++ b/src/transport/tcp_connection_legacy.c
@@ -120,7 +120,7 @@ struct AddressProbe
120 struct GNUNET_CONNECTION_Handle *connection; 120 struct GNUNET_CONNECTION_Handle *connection;
121 121
122 /** 122 /**
123 * Lenth of addr. 123 * Length of addr.
124 */ 124 */
125 socklen_t addrlen; 125 socklen_t addrlen;
126 126
@@ -538,7 +538,7 @@ signal_transmit_error (struct GNUNET_CONNECTION_Handle *connection, int ecode)
538 GNUNET_CONNECTION_TransmitReadyNotify notify; 538 GNUNET_CONNECTION_TransmitReadyNotify notify;
539 539
540 LOG (GNUNET_ERROR_TYPE_DEBUG, 540 LOG (GNUNET_ERROR_TYPE_DEBUG,
541 "Transmission encounterd error (%s), connection closed (%p)\n", 541 "Transmission encountered error (%s), connection closed (%p)\n",
542 strerror (ecode), 542 strerror (ecode),
543 connection); 543 connection);
544 if (NULL != connection->sock) 544 if (NULL != connection->sock)
diff --git a/src/transport/tcp_server_legacy.c b/src/transport/tcp_server_legacy.c
index 59b4fc20a..f4d48d4f6 100644
--- a/src/transport/tcp_server_legacy.c
+++ b/src/transport/tcp_server_legacy.c
@@ -836,7 +836,7 @@ GNUNET_SERVER_destroy (struct GNUNET_SERVER_Handle *server)
836 * incoming messages; the last entry must 836 * incoming messages; the last entry must
837 * have "NULL" for the "callback"; multiple 837 * have "NULL" for the "callback"; multiple
838 * entries for the same type are allowed, 838 * entries for the same type are allowed,
839 * they will be called in order of occurence. 839 * they will be called in order of occurrence.
840 * These handlers can be removed later; 840 * These handlers can be removed later;
841 * the handlers array must exist until removed 841 * the handlers array must exist until removed
842 * (or server is destroyed). 842 * (or server is destroyed).
diff --git a/src/transport/tcp_server_mst_legacy.c b/src/transport/tcp_server_mst_legacy.c
index cef41c5b0..bed6874c9 100644
--- a/src/transport/tcp_server_mst_legacy.c
+++ b/src/transport/tcp_server_mst_legacy.c
@@ -262,7 +262,7 @@ do_align:
262 else 262 else
263 { 263 {
264 /* need to copy to private buffer to align; 264 /* need to copy to private buffer to align;
265 * yes, we go a bit more spagetti than usual here */ 265 * yes, we go a bit more spaghetti than usual here */
266 goto do_align; 266 goto do_align;
267 } 267 }
268 } 268 }
diff --git a/src/transport/test_communicator_basic.c b/src/transport/test_communicator_basic.c
index 98b49012a..202bc0a5b 100644
--- a/src/transport/test_communicator_basic.c
+++ b/src/transport/test_communicator_basic.c
@@ -998,7 +998,7 @@ static void
998do_shutdown (void *cls) 998do_shutdown (void *cls)
999{ 999{
1000 LOG (GNUNET_ERROR_TYPE_DEBUG, 1000 LOG (GNUNET_ERROR_TYPE_DEBUG,
1001 "shuting down test.\n"); 1001 "shutting down test.\n");
1002 1002
1003 for (unsigned int i = 0; i < NUM_PEERS; i++) 1003 for (unsigned int i = 0; i < NUM_PEERS; i++)
1004 { 1004 {
diff --git a/src/transport/test_transport_address_switch.c b/src/transport/test_transport_address_switch.c
index b49cb187b..ce5117bd1 100644
--- a/src/transport/test_transport_address_switch.c
+++ b/src/transport/test_transport_address_switch.c
@@ -77,7 +77,7 @@ struct PeerStats
77 77
78static struct PeerStats stats[2]; 78static struct PeerStats stats[2];
79 79
80/* Amount of data transfered since last switch attempt */ 80/* Amount of data transferred since last switch attempt */
81static unsigned long long bytes_sent_after_switch; 81static unsigned long long bytes_sent_after_switch;
82 82
83static unsigned long long bytes_recv_after_switch; 83static unsigned long long bytes_recv_after_switch;
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c
index deb943956..508fed4f5 100644
--- a/src/transport/test_transport_api_reliability.c
+++ b/src/transport/test_transport_api_reliability.c
@@ -174,7 +174,7 @@ custom_shutdown (void *cls)
174 unsigned long long rate; 174 unsigned long long rate;
175 int ok; 175 int ok;
176 176
177 /* Calculcate statistics */ 177 /* Calculate statistics */
178 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us; 178 delta = GNUNET_TIME_absolute_get_duration (start_time).rel_value_us;
179 if (0 == delta) 179 if (0 == delta)
180 delta = 1; 180 delta = 1;
diff --git a/src/transport/transport-testing-communicator.c b/src/transport/transport-testing-communicator.c
index 040f16d5d..ce4af01f2 100644
--- a/src/transport/transport-testing-communicator.c
+++ b/src/transport/transport-testing-communicator.c
@@ -431,7 +431,7 @@ handle_queue_create_ok (void *cls,
431 431
432 432
433/** 433/**
434 * @brief Communicator informs that it wont try establishing requested queue. 434 * @brief Communicator informs that it won't try establishing requested queue.
435 * 435 *
436 * It will not do so probably because the address is bougus (see comment to 436 * It will not do so probably because the address is bougus (see comment to
437 * #GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_FAIL) 437 * #GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_FAIL)
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 2da193b31..a7ee563d7 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -824,7 +824,7 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct
824 824
825/** 825/**
826 * Cancel the request to connect two peers 826 * Cancel the request to connect two peers
827 * Tou MUST cancel the request if you stop the peers before the peers connected succesfully 827 * Tou MUST cancel the request if you stop the peers before the peers connected successfully
828 * 828 *
829 * @param tth transport testing handle 829 * @param tth transport testing handle
830 * @param cc a connect request handle 830 * @param cc a connect request handle
diff --git a/src/transport/transport-testing2.c b/src/transport/transport-testing2.c
index eaa8a5f15..96d305fd8 100644
--- a/src/transport/transport-testing2.c
+++ b/src/transport/transport-testing2.c
@@ -859,7 +859,7 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct
859 859
860/** 860/**
861 * Cancel the request to connect two peers 861 * Cancel the request to connect two peers
862 * Tou MUST cancel the request if you stop the peers before the peers connected succesfully 862 * Tou MUST cancel the request if you stop the peers before the peers connected successfully
863 * 863 *
864 * @param tth transport testing handle 864 * @param tth transport testing handle
865 * @param cc a connect request handle 865 * @param cc a connect request handle
diff --git a/src/transport/transport_api2_application.c b/src/transport/transport_api2_application.c
index 4862863dd..00f5f62eb 100644
--- a/src/transport/transport_api2_application.c
+++ b/src/transport/transport_api2_application.c
@@ -282,7 +282,7 @@ GNUNET_TRANSPORT_application_done (
282 * @param peer identity of the peer we need an address for 282 * @param peer identity of the peer we need an address for
283 * @param pk what kind of application will the application require (can be 283 * @param pk what kind of application will the application require (can be
284 * #GNUNET_MQ_PRIO_BACKGROUND, we will still try to connect) 284 * #GNUNET_MQ_PRIO_BACKGROUND, we will still try to connect)
285 * @param bw desired bandwith, can be zero (we will still try to connect) 285 * @param bw desired bandwidth, can be zero (we will still try to connect)
286 * @return suggest handle, NULL if a request is already pending 286 * @return suggest handle, NULL if a request is already pending
287 */ 287 */
288struct GNUNET_TRANSPORT_ApplicationSuggestHandle * 288struct GNUNET_TRANSPORT_ApplicationSuggestHandle *
@@ -359,7 +359,7 @@ GNUNET_TRANSPORT_application_suggest_cancel (
359 * @param peer identity of the peer we have an address for 359 * @param peer identity of the peer we have an address for
360 * @param nt network type of @a addr (as claimed by the other peer); 360 * @param nt network type of @a addr (as claimed by the other peer);
361 * used by TRANSPORT to avoid trying @a addr's that really cannot work 361 * used by TRANSPORT to avoid trying @a addr's that really cannot work
362 * due to network type missmatches 362 * due to network type mismatches
363 * @param addr address to validate 363 * @param addr address to validate
364 */ 364 */
365void 365void
diff --git a/src/transport/transport_api2_communication.c b/src/transport/transport_api2_communication.c
index 3d9da08e4..446add6f6 100644
--- a/src/transport/transport_api2_communication.c
+++ b/src/transport/transport_api2_communication.c
@@ -198,7 +198,7 @@ struct GNUNET_TRANSPORT_CommunicatorHandle
198 struct GNUNET_MQ_Handle *mq; 198 struct GNUNET_MQ_Handle *mq;
199 199
200 /** 200 /**
201 * Maximum permissable queue length. 201 * Maximum permissible queue length.
202 */ 202 */
203 unsigned long long max_queue_length; 203 unsigned long long max_queue_length;
204 204
@@ -262,7 +262,7 @@ struct GNUNET_TRANSPORT_QueueHandle
262 struct GNUNET_PeerIdentity peer; 262 struct GNUNET_PeerIdentity peer;
263 263
264 /** 264 /**
265 * Network type of the communciation queue. 265 * Network type of the communication queue.
266 */ 266 */
267 enum GNUNET_NetworkType nt; 267 enum GNUNET_NetworkType nt;
268 268
@@ -889,7 +889,7 @@ GNUNET_TRANSPORT_communicator_disconnect (
889 * immediately dropped due to memory limitations (communicator 889 * immediately dropped due to memory limitations (communicator
890 * should try to apply back pressure), 890 * should try to apply back pressure),
891 * #GNUNET_SYSERR if the message could not be delivered because 891 * #GNUNET_SYSERR if the message could not be delivered because
892 * the tranport service is not yet up 892 * the transport service is not yet up
893 */ 893 */
894int 894int
895GNUNET_TRANSPORT_communicator_receive ( 895GNUNET_TRANSPORT_communicator_receive (
diff --git a/src/transport/transport_api_core.c b/src/transport/transport_api_core.c
index 7d4b415bd..0ffaeb444 100644
--- a/src/transport/transport_api_core.c
+++ b/src/transport/transport_api_core.c
@@ -82,7 +82,7 @@ struct Neighbour
82 struct GNUNET_BANDWIDTH_Tracker out_tracker; 82 struct GNUNET_BANDWIDTH_Tracker out_tracker;
83 83
84 /** 84 /**
85 * Entry in our readyness heap (which is sorted by @e next_ready 85 * Entry in our readiness heap (which is sorted by @e next_ready
86 * value). NULL if there is no pending transmission request for 86 * value). NULL if there is no pending transmission request for
87 * this neighbour or if we're waiting for @e is_ready to become 87 * this neighbour or if we're waiting for @e is_ready to become
88 * true AFTER the @e out_tracker suggested that this peer's quota 88 * true AFTER the @e out_tracker suggested that this peer's quota
diff --git a/src/util/test_strings.c b/src/util/test_strings.c
index 753ec6908..d986486d0 100644
--- a/src/util/test_strings.c
+++ b/src/util/test_strings.c
@@ -41,7 +41,8 @@
41 41
42#define URLENCODE_TEST_VECTOR_PLAIN "Asbjlaw=ljsdlasjd?人aslkdsa" 42#define URLENCODE_TEST_VECTOR_PLAIN "Asbjlaw=ljsdlasjd?人aslkdsa"
43 43
44#define URLENCODE_TEST_VECTOR_ENCODED "Asbjlaw\%3Dljsdlasjd\%3F\%E4\%BA\%BAaslkdsa" 44#define URLENCODE_TEST_VECTOR_ENCODED \
45 "Asbjlaw\%3Dljsdlasjd\%3F\%E4\%BA\%BAaslkdsa"
45 46
46int 47int
47main (int argc, char *argv[]) 48main (int argc, char *argv[])
@@ -142,13 +143,16 @@ main (int argc, char *argv[])
142 GNUNET_assert (rt.rel_value_us == rtx.rel_value_us); 143 GNUNET_assert (rt.rel_value_us == rtx.rel_value_us);
143 144
144 GNUNET_assert (0 != GNUNET_STRINGS_urlencode (URLENCODE_TEST_VECTOR_PLAIN, 145 GNUNET_assert (0 != GNUNET_STRINGS_urlencode (URLENCODE_TEST_VECTOR_PLAIN,
145 strlen (URLENCODE_TEST_VECTOR_PLAIN), 146 strlen (
147 URLENCODE_TEST_VECTOR_PLAIN),
146 &b)); 148 &b));
147 WANT (URLENCODE_TEST_VECTOR_ENCODED, b); 149 WANT (URLENCODE_TEST_VECTOR_ENCODED, b);
148 GNUNET_free (b); 150 GNUNET_free (b);
149 GNUNET_assert (0 != GNUNET_STRINGS_urldecode (URLENCODE_TEST_VECTOR_ENCODED, 151 GNUNET_assert (0 !=
150 strlen (URLENCODE_TEST_VECTOR_ENCODED), 152 GNUNET_STRINGS_urldecode (URLENCODE_TEST_VECTOR_ENCODED,
151 &b)); 153 strlen (
154 URLENCODE_TEST_VECTOR_ENCODED),
155 &b));
152 WANT (URLENCODE_TEST_VECTOR_PLAIN, b); 156 WANT (URLENCODE_TEST_VECTOR_PLAIN, b);
153 GNUNET_free (b); 157 GNUNET_free (b);
154 return 0; 158 return 0;
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c
index c693d24ea..7eeb07379 100644
--- a/src/vpn/gnunet-helper-vpn.c
+++ b/src/vpn/gnunet-helper-vpn.c
@@ -77,7 +77,7 @@ struct in6_ifreq
77/** 77/**
78 * Creates a tun-interface called dev; 78 * Creates a tun-interface called dev;
79 * 79 *
80 * @param dev is asumed to point to a char[IFNAMSIZ] 80 * @param dev is assumed to point to a char[IFNAMSIZ]
81 * if *dev == '\\0', uses the name supplied by the kernel; 81 * if *dev == '\\0', uses the name supplied by the kernel;
82 * @return the fd to the tun or -1 on error 82 * @return the fd to the tun or -1 on error
83 */ 83 */
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c
index 4c57438c3..b4233905f 100644
--- a/src/vpn/gnunet-service-vpn.c
+++ b/src/vpn/gnunet-service-vpn.c
@@ -235,7 +235,7 @@ struct ChannelState
235 struct DestinationEntry destination; 235 struct DestinationEntry destination;
236 236
237 /** 237 /**
238 * Addess family used for this channel on the local TUN interface. 238 * Address family used for this channel on the local TUN interface.
239 */ 239 */
240 int af; 240 int af;
241 241
@@ -1396,7 +1396,7 @@ create_channel (struct ChannelState *ts,
1396 * @param cls the `struct ChannelState` 1396 * @param cls the `struct ChannelState`
1397 * @param id Peer providing a regex that matches the string. 1397 * @param id Peer providing a regex that matches the string.
1398 * @param get_path Path of the get request. 1398 * @param get_path Path of the get request.
1399 * @param get_path_length Lenght of @a get_path. 1399 * @param get_path_length Length of @a get_path.
1400 * @param put_path Path of the put request. 1400 * @param put_path Path of the put request.
1401 * @param put_path_length Length of the @a put_path. 1401 * @param put_path_length Length of the @a put_path.
1402 */ 1402 */
diff --git a/src/zonemaster/gnunet-service-zonemaster-monitor.c b/src/zonemaster/gnunet-service-zonemaster-monitor.c
index c6dd2b6ca..7e8c1fb8b 100644
--- a/src/zonemaster/gnunet-service-zonemaster-monitor.c
+++ b/src/zonemaster/gnunet-service-zonemaster-monitor.c
@@ -396,7 +396,7 @@ handle_monitor_error (void *cls)
396 396
397 397
398/** 398/**
399 * Performe zonemaster duties: watch namestore, publish records. 399 * Perform zonemaster duties: watch namestore, publish records.
400 * 400 *
401 * @param cls closure 401 * @param cls closure
402 * @param server the initialized server 402 * @param server the initialized server
diff --git a/src/zonemaster/gnunet-service-zonemaster.c b/src/zonemaster/gnunet-service-zonemaster.c
index 11fa9921d..2957cfee2 100644
--- a/src/zonemaster/gnunet-service-zonemaster.c
+++ b/src/zonemaster/gnunet-service-zonemaster.c
@@ -821,7 +821,7 @@ publish_zone_dht_start (void *cls)
821 821
822 822
823/** 823/**
824 * Performe zonemaster duties: watch namestore, publish records. 824 * Perform zonemaster duties: watch namestore, publish records.
825 * 825 *
826 * @param cls closure 826 * @param cls closure
827 * @param server the initialized server 827 * @param server the initialized server