summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-communicator-tcp.c3
-rw-r--r--src/transport/gnunet-communicator-udp.c3
-rw-r--r--src/transport/gnunet-communicator-unix.c5
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c32
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c30
-rw-r--r--src/transport/gnunet-service-tng.c15
-rw-r--r--src/transport/gnunet-service-transport.c4
-rw-r--r--src/transport/gnunet-service-transport.h3
-rw-r--r--src/transport/gnunet-service-transport_ats.c12
-rw-r--r--src/transport/gnunet-service-transport_manipulation.c1
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c7
-rw-r--r--src/transport/gnunet-service-transport_validation.c6
-rw-r--r--src/transport/gnunet-transport-profiler.c1
-rw-r--r--src/transport/gnunet-transport-wlan-sender.c1
-rw-r--r--src/transport/gnunet-transport.c1
-rw-r--r--src/transport/ieee80211_radiotap.h1
-rw-r--r--src/transport/plugin_transport_http_client.c5
-rw-r--r--src/transport/plugin_transport_http_common.c3
-rw-r--r--src/transport/plugin_transport_http_server.c8
-rw-r--r--src/transport/plugin_transport_smtp.c14
-rw-r--r--src/transport/plugin_transport_tcp.c10
-rw-r--r--src/transport/plugin_transport_template.c6
-rw-r--r--src/transport/plugin_transport_udp.c7
-rw-r--r--src/transport/plugin_transport_udp_broadcasting.c12
-rw-r--r--src/transport/plugin_transport_unix.c1
-rw-r--r--src/transport/plugin_transport_wlan.c3
-rw-r--r--src/transport/plugin_transport_wlan.h1
-rw-r--r--src/transport/tcp_server_legacy.c1
-rw-r--r--src/transport/tcp_server_mst_legacy.c2
-rw-r--r--src/transport/test_communicator_unix.c1
-rw-r--r--src/transport/test_http_common.c1
-rw-r--r--src/transport/test_plugin_transport.c6
-rw-r--r--src/transport/test_transport_address_switch.c2
-rw-r--r--src/transport/test_transport_api.c1
-rw-r--r--src/transport/test_transport_api_disconnect.c1
-rw-r--r--src/transport/test_transport_api_limited_sockets.c2
-rw-r--r--src/transport/test_transport_api_manipulation_recv_tcp.c1
-rw-r--r--src/transport/test_transport_api_manipulation_send_tcp.c1
-rw-r--r--src/transport/test_transport_api_monitor_peers.c1
-rw-r--r--src/transport/test_transport_api_restart_reconnect.c1
-rw-r--r--src/transport/test_transport_api_timeout.c1
-rw-r--r--src/transport/test_transport_blacklisting.c4
-rw-r--r--src/transport/test_transport_testing_restart.c1
-rw-r--r--src/transport/test_transport_testing_startstop.c1
-rw-r--r--src/transport/transport-testing-loggers.c2
-rw-r--r--src/transport/transport-testing-main.c1
-rw-r--r--src/transport/transport-testing-send.c1
-rw-r--r--src/transport/transport-testing.c1
-rw-r--r--src/transport/transport_api2_monitor.c1
-rw-r--r--src/transport/transport_api_blacklist.c1
-rw-r--r--src/transport/transport_api_monitor_peers.c1
-rw-r--r--src/transport/transport_api_monitor_plugins.c1
52 files changed, 131 insertions, 101 deletions
diff --git a/src/transport/gnunet-communicator-tcp.c b/src/transport/gnunet-communicator-tcp.c
index f3ccbd262..098bb9523 100644
--- a/src/transport/gnunet-communicator-tcp.c
+++ b/src/transport/gnunet-communicator-tcp.c
@@ -1052,8 +1052,7 @@ queue_read (void *cls)
wrong key for everything after the rekey; in that case, we have
to re-do the decryption at 'total' instead of at 'max'. If there
is no rekey and the last message is incomplete (max > total),
- it is safe to keep the decryption so we shift by 'max' */
- if (GNUNET_YES == queue->rekeyed)
+ it is safe to keep the decryption so we shift by 'max' */if (GNUNET_YES == queue->rekeyed)
{
max = total;
queue->rekeyed = GNUNET_NO;
diff --git a/src/transport/gnunet-communicator-udp.c b/src/transport/gnunet-communicator-udp.c
index 2d9fabfec..80fc4142b 100644
--- a/src/transport/gnunet-communicator-udp.c
+++ b/src/transport/gnunet-communicator-udp.c
@@ -2526,8 +2526,7 @@ iface_proc (void *cls,
* group in the normal IPv6 routing table and using the resulting
* interface; we do this for each interface, so no need to use
* zero (anymore...).
- */
- bi->mcreq.ipv6mr_interface = s6->sin6_scope_id;
+ */bi->mcreq.ipv6mr_interface = s6->sin6_scope_id;
/* Join the multicast group */
if (GNUNET_OK != GNUNET_NETWORK_socket_setsockopt (udp_sock,
diff --git a/src/transport/gnunet-communicator-unix.c b/src/transport/gnunet-communicator-unix.c
index d8205addb..2cfb802e3 100644
--- a/src/transport/gnunet-communicator-unix.c
+++ b/src/transport/gnunet-communicator-unix.c
@@ -1111,12 +1111,15 @@ main (int argc, char *const *argv)
/**
* MINIMIZE heap size (way below 128k) since this process doesn't need much.
*/
-void __attribute__ ((constructor)) GNUNET_ARM_memory_init ()
+void __attribute__ ((constructor))
+GNUNET_ARM_memory_init ()
{
mallopt (M_TRIM_THRESHOLD, 4 * 1024);
mallopt (M_TOP_PAD, 1 * 1024);
malloc_trim (0);
}
+
+
#endif
/* end of gnunet-communicator-unix.c */
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index c0e0d9673..9b56d0922 100644
--- a/src/transport/gnunet-helper-transport-bluetooth.c
+++ b/src/transport/gnunet-helper-transport-bluetooth.c
@@ -446,6 +446,7 @@ do_align:
return ret;
}
+
/**
* Destroys a tokenizer.
*
@@ -458,6 +459,7 @@ mst_destroy (struct MessageStreamTokenizer *mst)
free (mst);
}
+
/**
* Calculate crc32, the start of the calculation
*
@@ -558,14 +560,13 @@ check_crc_buf_osdep (const unsigned char *buf, size_t len)
crc = calc_crc_osdep (buf, len);
buf += len;
- if ((((crc) & 0xFF) == buf[0])&&(((crc >> 8) & 0xFF) == buf[1])&&
- ( ((crc >> 16) & 0xFF) == buf[2]) &&( ((crc >> 24) & 0xFF) == buf[3]) )
+ if ((((crc) & 0xFF) == buf[0]) && (((crc >> 8) & 0xFF) == buf[1]) &&
+ ( ((crc >> 16) & 0xFF) == buf[2]) && ( ((crc >> 24) & 0xFF) == buf[3]) )
return 0;
return 1;
}
-
/* ************** end of clone ***************** */
#ifdef LINUX
/**
@@ -593,6 +594,8 @@ bind_socket (int socket, struct sockaddr_rc *addr)
return -1;
}
+
+
#endif
/**
@@ -613,8 +616,7 @@ register_service (struct HardwareInfos *dev, int rc_channel)
* 5. set the name, provider and description
* 6. register the service record to the local SDP server
* 7. cleanup
- */
- uint8_t svc_uuid_int[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ */uint8_t svc_uuid_int[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
dev->pl_mac.mac[5], dev->pl_mac.mac[4],
dev->pl_mac.mac[3],
dev->pl_mac.mac[2], dev->pl_mac.mac[1],
@@ -688,6 +690,7 @@ register_service (struct HardwareInfos *dev, int rc_channel)
return 0;
}
+
/**
* Function used for searching and browsing for a service. This will return the
* port number on which the service is running.
@@ -706,8 +709,7 @@ get_channel (struct HardwareInfos *dev, bdaddr_t dest)
* 2.2. get a list of service records with the specific UUID
* 2.3. for each service record get a list of the protocol sequences and get
* the port number
- */
- uint8_t svc_uuid_int[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ */uint8_t svc_uuid_int[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
dest.b[5], dest.b[4], dest.b[3],
dest.b[2], dest.b[1], dest.b[0] };
sdp_session_t *session = 0;
@@ -763,6 +765,7 @@ get_channel (struct HardwareInfos *dev, bdaddr_t dest)
return channel;
}
+
/**
* Read from the socket and put the result into the buffer for transmission to 'stdout'.
*
@@ -954,7 +957,6 @@ open_device (struct HardwareInfos *dev)
(void) close (fd_hci);
-
/* Bind the rfcomm socket to the interface */
memset (&rc_addr, 0, sizeof(rc_addr));
rc_addr.rc_family = AF_BLUETOOTH;
@@ -1010,6 +1012,7 @@ mac_set (struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame *taIeeeHeader,
taIeeeHeader->addr2 = dev->pl_mac;
}
+
#ifdef LINUX
/**
* Test if the given interface name really corresponds to a bluetooth
@@ -1038,6 +1041,8 @@ test_bluetooth_interface (const char *iface)
}
return 0;
}
+
+
#endif
/**
@@ -1112,6 +1117,7 @@ stdin_send_hw (void *cls, const struct GNUNET_MessageHeader *hdr)
write_pout.size = sendsize;
}
+
#ifdef LINUX
/**
* Broadcast a HELLO message for peer discovery
@@ -1127,7 +1133,7 @@ send_broadcast (struct HardwareInfos *dev, int *sendsocket)
int loops = 0;
search_for_devices:
- if (((neighbours.size == neighbours.pos)&&(new_device == 1)) ||
+ if (((neighbours.size == neighbours.pos) && (new_device == 1)) ||
(neighbours.size == 0) )
{
inquiry_devices: // skip the conditions and force a inquiry for new devices
@@ -1359,6 +1365,8 @@ inquiry_devices: // skip the conditions and force a inquiry for new devices
return 0;
}
+
+
#endif
/**
@@ -1606,9 +1614,9 @@ main (int argc, char *argv[])
connect_retry:
status = connect (sendsocket, (struct sockaddr *) &addr,
sizeof(addr));
- if ((0 != status) &&(errno != EAGAIN) )
+ if ((0 != status) && (errno != EAGAIN) )
{
- if ((errno == ECONNREFUSED) &&(tries < 2) )
+ if ((errno == ECONNREFUSED) && (tries < 2) )
{
fprintf (stderr, "LOG : %.*s failed to connect. Trying again!\n",
IFNAMSIZ, dev.iface);
@@ -1668,7 +1676,7 @@ connect_retry:
int retval = select (maxfd + 1, &rfds, &wfds, NULL, NULL);
if ((-1 == retval) && (EINTR == errno))
continue;
- if ((0 > retval) &&(errno != EBADF) ) // we handle BADF errors later
+ if ((0 > retval) && (errno != EBADF) ) // we handle BADF errors later
{
fprintf (stderr, "select failed: %s\n", strerror (errno));
break;
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index 7ad6c5175..68adadbe8 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -176,7 +176,6 @@
#define MAXLINE 4096
-
/* ********* structure of messages of type ARPHRD_IEEE80211_PRISM *********** */
/**
@@ -465,7 +464,6 @@ enum RadiotapType
#define IEEE80211_RADIOTAP_PRESENT_EXTEND_MASK (1 << IEEE80211_RADIOTAP_EXT)
-
/**
* Bit in IEEE80211_RADIOTAP_FLAGS (which we might get
* as part of a 'struct Ieee80211RadiotapHeader' extension
@@ -651,7 +649,6 @@ struct RadiotapTransmissionHeader
IEEE80211_RADIOTAP_TX_FLAGS))
-
/**
* struct Ieee80211RadiotapHeaderIterator - tracks walk through present radiotap arguments
* in the radiotap header. Used when we parse radiotap packets received from the kernel.
@@ -770,7 +767,6 @@ static struct SendBuffer write_pout;
static struct SendBuffer write_std;
-
/* *********** specialized version of server_mst.c begins here ********** */
/**
@@ -1031,6 +1027,7 @@ mst_destroy (struct MessageStreamTokenizer *mst)
free (mst);
}
+
/* ***************** end of server_mst.c clone ***************** **/
@@ -1091,8 +1088,7 @@ ieee80211_radiotap_iterator_init (struct
* check for insanity where the present bitmaps
* keep claiming to extend up to or even beyond the
* stated radiotap header length
- */
- if (iterator->arg - ((uint8_t*) iterator->rtheader) >
+ */if (iterator->arg - ((uint8_t*) iterator->rtheader) >
iterator->max_length)
return -1;
}
@@ -1101,8 +1097,7 @@ ieee80211_radiotap_iterator_init (struct
* no need to check again for blowing past stated radiotap
* header length, becuase ieee80211_radiotap_iterator_next
* checks it before it is dereferenced
- */
- }
+ */}
/* we are all initialized happily */
return 0;
}
@@ -1137,9 +1132,7 @@ ieee80211_radiotap_iterator_next (struct
*
* upper nybble: content alignment for arg
* lower nybble: content length for arg
- */
-
- static const uint8_t rt_sizes[] = {
+ */static const uint8_t rt_sizes[] = {
[IEEE80211_RADIOTAP_TSFT] = 0x88,
[IEEE80211_RADIOTAP_FLAGS] = 0x11,
[IEEE80211_RADIOTAP_RATE] = 0x11,
@@ -1198,8 +1191,7 @@ ieee80211_radiotap_iterator_next (struct
* radiotap header. There is no guarantee that the radiotap
* header itself is aligned on any kind of boundary, thus we
* need to really look at the delta here.
- */
- wanted_alignment = rt_sizes[iterator->arg_index] >> 4;
+ */wanted_alignment = rt_sizes[iterator->arg_index] >> 4;
unalignment = (((void *) iterator->arg) - ((void *) iterator->rtheader))
& (wanted_alignment - 1);
if (0 != unalignment)
@@ -1224,8 +1216,7 @@ ieee80211_radiotap_iterator_next (struct
* claims to have more arg content than the length of the
* radiotap section. We will normally end up equalling this
* max_length on the last arg, never exceeding it.
- */
- if ((((void *) iterator->arg) - ((void *) iterator->rtheader)) >
+ */if ((((void *) iterator->arg) - ((void *) iterator->rtheader)) >
iterator->max_length)
return -1;
}
@@ -1365,8 +1356,8 @@ check_crc_buf_osdep (const unsigned char *buf, size_t len)
crc = calc_crc_osdep (buf, len);
buf += len;
- if ((((crc) & 0xFF) == buf[0])&&(((crc >> 8) & 0xFF) == buf[1])&&
- ( ((crc >> 16) & 0xFF) == buf[2]) &&( ((crc >> 24) & 0xFF) == buf[3]) )
+ if ((((crc) & 0xFF) == buf[0]) && (((crc >> 8) & 0xFF) == buf[1]) &&
+ ( ((crc >> 16) & 0xFF) == buf[2]) && ( ((crc >> 24) & 0xFF) == buf[3]) )
return 0;
return 1;
}
@@ -1386,11 +1377,11 @@ check_crc_buf_osdep (const unsigned char *buf, size_t len)
static int
get_channel_from_frequency (int32_t frequency)
{
- if ((frequency >= 2412)&&(frequency <= 2472))
+ if ((frequency >= 2412) && (frequency <= 2472))
return (frequency - 2407) / 5;
if (frequency == 2484)
return 14;
- if ((frequency >= 5000)&&(frequency <= 6100))
+ if ((frequency >= 5000) && (frequency <= 6100))
return (frequency - 5000) / 5;
return -1;
}
@@ -2191,4 +2182,5 @@ main (int argc, char *argv[])
return 1; /* we never exit 'normally' */
}
+
/* end of gnunet-helper-transport-wlan.c */
diff --git a/src/transport/gnunet-service-tng.c b/src/transport/gnunet-service-tng.c
index 66a836b84..8d68d90a6 100644
--- a/src/transport/gnunet-service-tng.c
+++ b/src/transport/gnunet-service-tng.c
@@ -4734,8 +4734,7 @@ consider_sending_fc (void *cls)
then. See vl->last_fc_rtt! NOTE: to do this properly, we also
need an estimate for the bandwidth-delay-product for the entire
VL, as that determines "significantly". We have the delay, but
- the bandwidth statistics need to be added for the VL!*/
- (void) duration;
+ the bandwidth statistics need to be added for the VL!*/(void) duration;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Sending FC seq %u to %s with new window %llu\n",
@@ -5218,8 +5217,7 @@ handle_raw_message (void *cls, const struct GNUNET_MessageHeader *mh)
we pass this on, CORE would be confused (link down, messages
arrive). We should investigate more if this happens often,
or in a persistent manner, and possibly do "something" about
- it. Thus logging as error for now. */
- GNUNET_break_op (0);
+ it. Thus logging as error for now. */GNUNET_break_op (0);
GNUNET_STATISTICS_update (GST_stats,
"# CORE messages droped (virtual link still down)",
1,
@@ -8643,8 +8641,7 @@ select_best_pending_from_link (struct PendingMessageScoreContext *sc,
given message fits _this_ queue, and do not consider how well other
queues might suit the message. Taking other queues into consideration
may further improve the result, but could also be expensive
- in terms of CPU time. */
- long long sc_score = sc->frag * 40 + sc->relb * 20 + sc->real_overhead;
+ in terms of CPU time. */long long sc_score = sc->frag * 40 + sc->relb * 20 + sc->real_overhead;
long long pm_score = frag * 40 + relb * 20 + real_overhead;
long long time_delta =
(sc->best->next_attempt.abs_value_us - pos->next_attempt.abs_value_us)
@@ -8848,8 +8845,7 @@ transmit_on_queue (void *cls)
via DV (and thus the ultimate target of the pending message is for
a different virtual link than the one of the queue), then we need
to use up not only the window of the direct link but also the
- flow control window for the DV link! */
- pm->vl->outbound_fc_window_size_used += pm->bytes_msg;
+ flow control window for the DV link! */pm->vl->outbound_fc_window_size_used += pm->bytes_msg;
if (pm->vl != queue->neighbour->vl)
{
@@ -8888,8 +8884,7 @@ transmit_on_queue (void *cls)
OPTIMIZE: Note that in the future this heuristic should likely
be improved further (measure RTT stability, consider message
- urgency and size when delaying ACKs, etc.) */
- update_pm_next_attempt (pm,
+ urgency and size when delaying ACKs, etc.) */update_pm_next_attempt (pm,
GNUNET_TIME_relative_to_absolute (
GNUNET_TIME_relative_multiply (queue->pd.aged_rtt,
4)));
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index 853a61127..7638839cc 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -2390,9 +2390,7 @@ test_blacklisted (void *cls, const struct GNUNET_PeerIdentity *key, void *value)
* If (NULL != transport_name) we look for a transport specific entry:
* if (transport_name == be) forbidden
*
- */
-
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ */GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Comparing BL request for peer `%4s':`%s' with BL entry: `%s'\n",
GNUNET_i2s (key),
(NULL == transport_name) ? "unspecified" : transport_name,
diff --git a/src/transport/gnunet-service-transport.h b/src/transport/gnunet-service-transport.h
index 3c2ca5a08..acb1de395 100644
--- a/src/transport/gnunet-service-transport.h
+++ b/src/transport/gnunet-service-transport.h
@@ -133,7 +133,6 @@ GST_blacklist_add_peer (const struct GNUNET_PeerIdentity *peer,
struct GST_BlacklistCheck;
-
/**
* Test if a peer/transport combination is blacklisted.
*
@@ -231,7 +230,5 @@ void
GST_clients_broadcast_disconnect (const struct GNUNET_PeerIdentity *peer);
-
-
#endif
/* end of file gnunet-service-transport_plugins.h */
diff --git a/src/transport/gnunet-service-transport_ats.c b/src/transport/gnunet-service-transport_ats.c
index 9c262dbdf..130311e15 100644
--- a/src/transport/gnunet-service-transport_ats.c
+++ b/src/transport/gnunet-service-transport_ats.c
@@ -333,7 +333,7 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address,
return; /* our own, ignore! */
ai = find_ai (address,
session);
- if ((NULL == ai)||(NULL == ai->ar))
+ if ((NULL == ai) || (NULL == ai->ar))
{
/* The address is already gone/blocked, this can happen during a blacklist
* callback. */
@@ -366,8 +366,7 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address,
above played out: it was either freed in
#GNUNET_ATS_address_del_session() because it was
incoming, or explicitly in
- #GNUNET_ATS_address_del_session(). */
- ai->ar = NULL;
+ #GNUNET_ATS_address_del_session(). */ai->ar = NULL;
/* determine when the address should come back to life */
ai->blocked = GNUNET_TIME_relative_to_absolute (ai->back_off);
@@ -559,8 +558,7 @@ GST_ats_new_session (const struct GNUNET_HELLO_Address *address,
other part of the code could not tell if it just created a new
session or just got one recycled from the plugin; hence, we may
be called with "new" session even for an "old" session; in that
- case, check that this is the case, but just ignore it. */
- GNUNET_assert (NULL != (find_ai (address, session)));
+ case, check that this is the case, but just ignore it. */GNUNET_assert (NULL != (find_ai (address, session)));
return;
}
GNUNET_assert (NULL == ai->session);
@@ -679,8 +677,7 @@ GST_ats_del_session (const struct GNUNET_HELLO_Address *address,
above played out: it was either freed in
#GNUNET_ATS_address_del_session() because it was
incoming, or explicitly in
- #GNUNET_ATS_address_del_session(). */
- ai->ar = NULL;
+ #GNUNET_ATS_address_del_session(). */ai->ar = NULL;
}
destroy_ai (ai);
return;
@@ -919,4 +916,5 @@ GST_ats_done ()
p2a = NULL;
}
+
/* end of gnunet-service-transport_ats.c */
diff --git a/src/transport/gnunet-service-transport_manipulation.c b/src/transport/gnunet-service-transport_manipulation.c
index 47ae5b981..04d1774c0 100644
--- a/src/transport/gnunet-service-transport_manipulation.c
+++ b/src/transport/gnunet-service-transport_manipulation.c
@@ -582,4 +582,5 @@ GST_manipulation_stop ()
}
}
+
/* end of file gnunet-service-transport_manipulation.c */
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 3de10d108..9c6cebc24 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -3568,9 +3568,7 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message,
We expect a ACK:
- If a remote peer has sent a SYN, we responded with a SYN_ACK and
now wait for the ACK to finally be connected
- - If we sent a SYN_ACK to this peer before */
-
- if (((GNUNET_TRANSPORT_PS_SYN_RECV_ACK != n->state) &&
+ - If we sent a SYN_ACK to this peer before */if (((GNUNET_TRANSPORT_PS_SYN_RECV_ACK != n->state) &&
(ACK_SEND_ACK != n->ack_state)) ||
(NULL == n->primary_address.address))
{
@@ -3606,8 +3604,7 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message,
* an ACK.
* That suggests that the primary_address used to be non-NULL, but maybe it
* got reset to NULL without the state being changed appropriately?
- */
- GNUNET_break (0);
+ */GNUNET_break (0);
return GNUNET_OK;
}
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c
index ec8600b7f..631b0a8f8 100644
--- a/src/transport/gnunet-service-transport_validation.c
+++ b/src/transport/gnunet-service-transport_validation.c
@@ -81,8 +81,6 @@ enum GNUNET_TRANSPORT_ValidationState
};
-
-
/**
* How long is a PONG signature valid? We'll recycle a signature until
* 1/4 of this time is remaining. PONGs should expire so that if our
@@ -993,9 +991,7 @@ GST_validation_start (unsigned int max_fds)
* - "fast start": run validation immediately
* - have delay of (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value_us) / (max_fds / 2)
* (300 sec / ~150 == ~2 sec.) between two validations
- */
-
- validation_next = GNUNET_TIME_absolute_get ();
+ */validation_next = GNUNET_TIME_absolute_get ();
validation_delay.rel_value_us =
(GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT.rel_value_us) / (max_fds / 2);
validations_fast_start_threshold = (max_fds / 2);
diff --git a/src/transport/gnunet-transport-profiler.c b/src/transport/gnunet-transport-profiler.c
index b09361d14..6c13cf059 100644
--- a/src/transport/gnunet-transport-profiler.c
+++ b/src/transport/gnunet-transport-profiler.c
@@ -621,4 +621,5 @@ main (int argc, char *const *argv)
return 1;
}
+
/* end of gnunet-transport-profiler.c */
diff --git a/src/transport/gnunet-transport-wlan-sender.c b/src/transport/gnunet-transport-wlan-sender.c
index 191ea8619..5256ec7be 100644
--- a/src/transport/gnunet-transport-wlan-sender.c
+++ b/src/transport/gnunet-transport-wlan-sender.c
@@ -65,6 +65,7 @@ getRadiotapHeader (struct GNUNET_TRANSPORT_WLAN_RadiotapSendMessage *header,
return GNUNET_YES;
}
+
/**
* function to generate the wlan hardware header for one packet
* @param Header address to write the header to
diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c
index f0d9d30c3..5a437b660 100644
--- a/src/transport/gnunet-transport.c
+++ b/src/transport/gnunet-transport.c
@@ -1433,4 +1433,5 @@ main (int argc, char *const *argv)
return 1;
}
+
/* end of gnunet-transport.c */
diff --git a/src/transport/ieee80211_radiotap.h b/src/transport/ieee80211_radiotap.h
index 9bdfa02f5..1a79cf214 100644
--- a/src/transport/ieee80211_radiotap.h
+++ b/src/transport/ieee80211_radiotap.h
@@ -272,4 +272,5 @@ ieee80211_get_radiotap_len (unsigned char *data)
return get_unaligned_le16 ((const u8 *) &hdr->it_len);
}
+
#endif /* IEEE80211_RADIOTAP_H */
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 98ab6544f..87cd7ead2 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -703,6 +703,8 @@ client_log (CURL *curl,
text);
return 0;
}
+
+
#endif
/**
@@ -1504,6 +1506,8 @@ open_tcp_stealth_socket_cb (void *clientp,
return CURL_SOCKET_BAD;
}
}
+
+
#endif
@@ -2528,4 +2532,5 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
return api;
}
+
/* end of plugin_transport_http_client.c */
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index 6d3ee3429..2bcab42b4 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -173,6 +173,7 @@ http_split_address (const char *addr)
return sp;
}
+
/**
* Closure for #append_port().
*/
@@ -640,6 +641,7 @@ http_common_plugin_address_to_string (const char *plugin,
return NULL;
}
+
/**
* Function called to convert a string address to
* a binary address.
@@ -943,5 +945,4 @@ http_common_get_network_for_address (struct
}
-
/* end of plugin_transport_http_common.c */
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index 6e106fe78..20bdb6273 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -35,7 +35,6 @@
#include <regex.h>
-
#if BUILD_HTTPS
#define PLUGIN_NAME "https_server"
#define LIBGNUNET_PLUGIN_TRANSPORT_INIT \
@@ -2115,6 +2114,8 @@ server_load_file (const char *file)
GNUNET_DISK_file_close (gn_file);
return text;
}
+
+
#endif
@@ -2242,6 +2243,8 @@ server_load_certificate (struct HTTP_Server_Plugin *plugin)
"TLS certificate loaded\n");
return res;
}
+
+
#endif
@@ -2358,7 +2361,6 @@ server_start (struct HTTP_Server_Plugin *plugin)
#endif
-
plugin->server_v4 = NULL;
if (GNUNET_YES == plugin->use_ipv4)
{
@@ -2557,7 +2559,6 @@ server_remove_address (void *cls,
}
-
/**
* Our external IP address/port mapping has changed.
*
@@ -3598,4 +3599,5 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
return api;
}
+
/* end of plugin_transport_http_server.c */
diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c
index 7fbbc9126..330023118 100644
--- a/src/transport/plugin_transport_smtp.c
+++ b/src/transport/plugin_transport_smtp.c
@@ -257,6 +257,7 @@ END:
return NULL;
}
+
/* *************** API implementation *************** */
/**
@@ -287,6 +288,7 @@ api_verify_hello (const GNUNET_MessageHello *hello)
return GNUNET_OK;
}
+
/**
* Create a hello-Message for the current node. The hello is created
* without signature and without a timestamp. The GNUnet core will
@@ -336,6 +338,7 @@ api_create_hello ()
return msg;
}
+
struct GetMessageClosure
{
unsigned int esize;
@@ -361,6 +364,7 @@ get_message (void **buf, int *len, void *cls)
return gmc->ebody;
}
+
/**
* Send a message to the specified remote node.
*
@@ -529,6 +533,7 @@ api_send (GNUNET_TSession *tsession, const void *msg, const unsigned int size,
return GNUNET_OK;
}
+
/**
* Establish a connection to a remote node.
* @param hello the hello-Message for the target node
@@ -551,6 +556,7 @@ api_connect (const GNUNET_MessageHello *hello, GNUNET_TSession **tsessionPtr,
return GNUNET_OK;
}
+
/**
* Disconnect from a remote node.
*
@@ -569,6 +575,7 @@ api_disconnect (GNUNET_TSession *tsession)
return GNUNET_OK;
}
+
/**
* Start the server process to receive inbound traffic.
* @return GNUNET_OK on success, GNUNET_SYSERR if the operation failed
@@ -589,6 +596,7 @@ api_start_transport_server ()
return GNUNET_OK;
}
+
/**
* Shutdown the server process (stop receiving inbound traffic). Maybe
* restarted later!
@@ -604,6 +612,7 @@ api_stop_transport_server ()
return GNUNET_OK;
}
+
/**
* Convert SMTP hello to an IP address (always fails).
*/
@@ -614,6 +623,7 @@ api_hello_to_address (const GNUNET_MessageHello *hello, void **sa,
return GNUNET_SYSERR;
}
+
/**
* Always fails.
*/
@@ -623,6 +633,7 @@ api_associate (GNUNET_TSession *tsession)
return GNUNET_SYSERR; /* SMTP connections can never be associated */
}
+
/**
* Always succeeds (for now; we should look at adding
* frequency limits to SMTP in the future!).
@@ -634,6 +645,7 @@ api_test_would_try (GNUNET_TSession *tsession, unsigned int size,
return GNUNET_OK; /* we always try... */
}
+
/**
* The exported method. Makes the core api available via a global and
* returns the smtp transport API.
@@ -714,6 +726,7 @@ inittransport_smtp (struct GNUNET_CoreAPIForTransport *core)
return &smtpAPI;
}
+
void
donetransport_smtp ()
{
@@ -733,4 +746,5 @@ donetransport_smtp ()
email = NULL;
}
+
/* end of smtp.c */
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 36ff00dd8..ad0766af9 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -402,6 +402,7 @@ void
GNUNET_SERVER_client_set_user_context_ (struct GNUNET_SERVER_Client *client,
void *ptr,
size_t size);
+
/**
* Return user context associated with the given client.
*
@@ -1376,6 +1377,8 @@ get_server_addresses (const char *service_name,
*addr_lens = saddrlens;
return resi;
}
+
+
/* end ancient copy-and-paste */
@@ -2447,8 +2450,7 @@ tcp_plugin_get_session (void *cls, const struct GNUNET_HELLO_Address *address)
one TCP connection to any given peer at the same time.
Without this, peers sometimes disagree about which of the TCP
connections they should use, causing one side to believe that
- they transmit successfully, while the other receives nothing. */
- return NULL; /* Refuse to have more than one TCP connection per
+ they transmit successfully, while the other receives nothing. */return NULL; /* Refuse to have more than one TCP connection per
peer pair at the same time. */
}
@@ -2956,8 +2958,7 @@ handle_tcp_nat_probe (void *cls,
* received the punch message and now wants us to use the new connection
* as the default for that peer. Do so and then send a WELCOME message
* so we can really be connected!
- */
- if (ntohs (message->size) != sizeof(struct TCP_NAT_ProbeMessage))
+ */if (ntohs (message->size) != sizeof(struct TCP_NAT_ProbeMessage))
{
GNUNET_break_op (0);
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
@@ -3962,4 +3963,5 @@ libgnunet_plugin_transport_tcp_done (void *cls)
return NULL;
}
+
/* end of plugin_transport_tcp.c */
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c
index 54b3a277a..239f32f4a 100644
--- a/src/transport/plugin_transport_template.c
+++ b/src/transport/plugin_transport_template.c
@@ -180,6 +180,8 @@ notify_session_monitor (struct Plugin *plugin,
session,
&info);
}
+
+
#endif
@@ -337,7 +339,6 @@ template_plugin_address_pretty_printer (void *cls, const char *type,
}
-
/**
* Another peer has suggested an address for this
* peer and transport plugin. Check that this could be a valid
@@ -463,6 +464,8 @@ send_session_info_iter (void *cls,
GNUNET_TRANSPORT_SS_UP);
return GNUNET_OK;
}
+
+
#endif
@@ -558,4 +561,5 @@ libgnunet_plugin_transport_template_done (void *cls)
return NULL;
}
+
/* end of plugin_transport_template.c */
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 8d0bbea47..ef4fddb24 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -2016,8 +2016,7 @@ udp_plugin_send (void *cls,
* For UDP we update session timeout only on receive, this will
* cover keep alives, since remote peer will reply with keep alive
* responses!
- */
- if (udpmlen <= UDP_MTU)
+ */if (udpmlen <= UDP_MTU)
{
/* unfragmented message */
udpw = GNUNET_malloc (sizeof(struct UDP_MessageWrapper) + udpmlen);
@@ -3178,8 +3177,7 @@ analyze_send_error (struct Plugin *plugin,
* This indicates that this system is IPv6 enabled, but does not
* have a valid global IPv6 address assigned or we do not have
* connectivity
- */
- LOG (GNUNET_ERROR_TYPE_WARNING | GNUNET_ERROR_TYPE_BULK,
+ */LOG (GNUNET_ERROR_TYPE_WARNING | GNUNET_ERROR_TYPE_BULK,
_ (
"UDP could not transmit IPv6 message! "
"Please check your network configuration and disable IPv6 if your "
@@ -3894,4 +3892,5 @@ libgnunet_plugin_transport_udp_done (void *cls)
return NULL;
}
+
/* end of plugin_transport_udp.c */
diff --git a/src/transport/plugin_transport_udp_broadcasting.c b/src/transport/plugin_transport_udp_broadcasting.c
index d8fdfe886..c85124b68 100644
--- a/src/transport/plugin_transport_udp_broadcasting.c
+++ b/src/transport/plugin_transport_udp_broadcasting.c
@@ -223,7 +223,7 @@ prepare_beacon (struct Plugin *plugin,
hello_size = GNUNET_HELLO_size ((struct GNUNET_HELLO_Message *) hello);
msg_size = hello_size + sizeof(struct UDP_Beacon_Message);
- if ((hello_size < (sizeof(struct GNUNET_MessageHeader)))||
+ if ((hello_size < (sizeof(struct GNUNET_MessageHeader))) ||
(msg_size > (UDP_MTU)))
return 0;
@@ -331,8 +331,7 @@ udp_ipv6_broadcast_send (void *cls)
if the scope ID is ignored, the kernel should just multicast
on ALL interfaces, which is merely slightly less efficient;
in that case, we might want to revert to only doing this
- once, and not per interface (hard to test...) */
- plugin->ipv6_multicast_address.sin6_scope_id = s6->sin6_scope_id;
+ once, and not per interface (hard to test...) */plugin->ipv6_multicast_address.sin6_scope_id = s6->sin6_scope_id;
sent = GNUNET_NETWORK_socket_sendto (plugin->sockv6, &buf, msg_size,
(const struct sockaddr *)
&plugin->ipv6_multicast_address,
@@ -346,8 +345,7 @@ udp_ipv6_broadcast_send (void *cls)
*
* This indicates that this system is IPv6 enabled, but does not
* have a valid global IPv6 address assigned
- */
- GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING,
+ */GNUNET_log (GNUNET_ERROR_TYPE_BULK | GNUNET_ERROR_TYPE_WARNING,
"Network connectivity is down, cannot send beacon!\n");
}
else
@@ -492,8 +490,7 @@ iface_proc (void *cls,
* group in the normal IPv6 routing table and using the resulting
* interface; we do this for each interface, so no need to use
* zero (anymore...).
- */
- multicastRequest.ipv6mr_interface = s6->sin6_scope_id;
+ */multicastRequest.ipv6mr_interface = s6->sin6_scope_id;
/* Join the multicast group */
if (GNUNET_OK !=
@@ -646,4 +643,5 @@ stop_broadcast (struct Plugin *plugin)
}
}
+
/* end of plugin_transport_udp_broadcasting.c */
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c
index 42d16f131..083a1cf7f 100644
--- a/src/transport/plugin_transport_unix.c
+++ b/src/transport/plugin_transport_unix.c
@@ -1886,4 +1886,5 @@ libgnunet_plugin_transport_unix_done (void *cls)
return NULL;
}
+
/* end of plugin_transport_unix.c */
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c
index 570a39ed7..d831a7b78 100644
--- a/src/transport/plugin_transport_wlan.c
+++ b/src/transport/plugin_transport_wlan.c
@@ -102,7 +102,6 @@
#endif
-
/**
* Functions with this signature are called whenever a
* complete message is received by the tokenizer.
@@ -876,7 +875,6 @@ session_timeout (void *cls)
}
-
/**
* Lookup a new session
*
@@ -2203,7 +2201,6 @@ wlan_plugin_setup_monitor (void *cls,
}
-
/**
* Function that will be called whenever the transport service wants to
* notify the plugin that a session is still active and in use and
diff --git a/src/transport/plugin_transport_wlan.h b/src/transport/plugin_transport_wlan.h
index 5fe9f166f..9ba9d2771 100644
--- a/src/transport/plugin_transport_wlan.h
+++ b/src/transport/plugin_transport_wlan.h
@@ -153,7 +153,6 @@ struct GNUNET_TRANSPORT_WLAN_Ieee80211Frame
} GNUNET_PACKED;
-
/**
* Message from the plugin to the WLAN helper: send the given message with the
* given connection parameters.
diff --git a/src/transport/tcp_server_legacy.c b/src/transport/tcp_server_legacy.c
index 1a1d493cd..59b4fc20a 100644
--- a/src/transport/tcp_server_legacy.c
+++ b/src/transport/tcp_server_legacy.c
@@ -337,7 +337,6 @@ struct GNUNET_SERVER_Client
};
-
/**
* Return user context associated with the given client.
* Note: you should probably use the macro (call without the underscore).
diff --git a/src/transport/tcp_server_mst_legacy.c b/src/transport/tcp_server_mst_legacy.c
index b27590a6f..cef41c5b0 100644
--- a/src/transport/tcp_server_mst_legacy.c
+++ b/src/transport/tcp_server_mst_legacy.c
@@ -72,7 +72,6 @@ struct GNUNET_SERVER_MessageStreamTokenizer
};
-
/**
* Create a message stream tokenizer.
*
@@ -305,5 +304,4 @@ GNUNET_SERVER_mst_destroy (struct GNUNET_SERVER_MessageStreamTokenizer *mst)
}
-
/* end of server_mst.c */
diff --git a/src/transport/test_communicator_unix.c b/src/transport/test_communicator_unix.c
index d1ab99910..db355c93e 100644
--- a/src/transport/test_communicator_unix.c
+++ b/src/transport/test_communicator_unix.c
@@ -193,6 +193,7 @@ run (void *cls)
NULL); /* cls */
}
+
int
main (int argc,
char *const *argv)
diff --git a/src/transport/test_http_common.c b/src/transport/test_http_common.c
index d925f1318..6e31ec85e 100644
--- a/src/transport/test_http_common.c
+++ b/src/transport/test_http_common.c
@@ -262,4 +262,5 @@ main (int argc, char *argv[])
return ret;
}
+
/* end of test_http_common.c */
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index ceb4333ac..10e07dae5 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -255,6 +255,7 @@ end_badly (void *cls)
ok = 1;
}
+
static void
wait_end (void *cls)
{
@@ -293,6 +294,7 @@ env_receive (void *cls,
return GNUNET_TIME_relative_get_zero_ ();
}
+
static int got_reply;
@@ -377,8 +379,7 @@ test_addr_string (void *cls)
int c1;
for (c1 = 0; c1 < s2a_len; c1++ )
fprintf (stderr, "%u == %u\n", ((char *) s2a)[c1], ((char *) w->addr)[c1]);
- */
- if (s2a_len != w->address->address_length)
+ */if (s2a_len != w->address->address_length)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Plugin creates different address length when converting address->string->address: %u != %u\n",
@@ -788,4 +789,5 @@ main (int argc,
return ret;
}
+
/* end of test_plugin_transport.c */
diff --git a/src/transport/test_transport_address_switch.c b/src/transport/test_transport_address_switch.c
index b030aa1b8..b49cb187b 100644
--- a/src/transport/test_transport_address_switch.c
+++ b/src/transport/test_transport_address_switch.c
@@ -428,4 +428,6 @@ main (int argc, char *argv[])
return 1;
return 0;
}
+
+
/* end of test_transport_address_switch.c */
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index 950eb2b04..5f5e03a9e 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -122,4 +122,5 @@ main (int argc,
return 0;
}
+
/* end of test_transport_api.c */
diff --git a/src/transport/test_transport_api_disconnect.c b/src/transport/test_transport_api_disconnect.c
index 76e0325af..c469f28bc 100644
--- a/src/transport/test_transport_api_disconnect.c
+++ b/src/transport/test_transport_api_disconnect.c
@@ -130,4 +130,5 @@ main (int argc,
return 0;
}
+
/* end of test_transport_api_disconnect.c */
diff --git a/src/transport/test_transport_api_limited_sockets.c b/src/transport/test_transport_api_limited_sockets.c
index 089ad7a32..0e47800e8 100644
--- a/src/transport/test_transport_api_limited_sockets.c
+++ b/src/transport/test_transport_api_limited_sockets.c
@@ -113,6 +113,7 @@ main (int argc, char *argv[])
return 0;
}
+
#else
/* cannot setrlimit */
@@ -125,6 +126,7 @@ main (int argc, char *argv[])
return 77;
}
+
#endif
/* end of test_transport_api_limited_sockets.c */
diff --git a/src/transport/test_transport_api_manipulation_recv_tcp.c b/src/transport/test_transport_api_manipulation_recv_tcp.c
index 5f651e3ed..207c4416f 100644
--- a/src/transport/test_transport_api_manipulation_recv_tcp.c
+++ b/src/transport/test_transport_api_manipulation_recv_tcp.c
@@ -199,4 +199,5 @@ main (int argc,
return 0;
}
+
/* end of test_transport_api_manipulation_recv_tcp.c */
diff --git a/src/transport/test_transport_api_manipulation_send_tcp.c b/src/transport/test_transport_api_manipulation_send_tcp.c
index 28516bcae..ea735cfc6 100644
--- a/src/transport/test_transport_api_manipulation_send_tcp.c
+++ b/src/transport/test_transport_api_manipulation_send_tcp.c
@@ -195,4 +195,5 @@ main (int argc,
return 0;
}
+
/* end of test_transport_api_manipulation_send_tcp.c */
diff --git a/src/transport/test_transport_api_monitor_peers.c b/src/transport/test_transport_api_monitor_peers.c
index 4e12d0bad..c09e3782d 100644
--- a/src/transport/test_transport_api_monitor_peers.c
+++ b/src/transport/test_transport_api_monitor_peers.c
@@ -222,4 +222,5 @@ main (int argc, char *argv[])
return 0;
}
+
/* end of test_transport_api_monitor_peers.c */
diff --git a/src/transport/test_transport_api_restart_reconnect.c b/src/transport/test_transport_api_restart_reconnect.c
index dff57a3a8..d58c1de54 100644
--- a/src/transport/test_transport_api_restart_reconnect.c
+++ b/src/transport/test_transport_api_restart_reconnect.c
@@ -213,4 +213,5 @@ main (int argc,
return 0;
}
+
/* end of test_transport_api_restart_1peer.c */
diff --git a/src/transport/test_transport_api_timeout.c b/src/transport/test_transport_api_timeout.c
index 80a457d15..9f8d3bb2b 100644
--- a/src/transport/test_transport_api_timeout.c
+++ b/src/transport/test_transport_api_timeout.c
@@ -160,4 +160,5 @@ main (int argc,
return 0;
}
+
/* end of test_transport_api_timeout.c*/
diff --git a/src/transport/test_transport_blacklisting.c b/src/transport/test_transport_blacklisting.c
index ef7f96d99..204935dcb 100644
--- a/src/transport/test_transport_blacklisting.c
+++ b/src/transport/test_transport_blacklisting.c
@@ -164,6 +164,7 @@ end_badly (void *cls)
ok = GNUNET_SYSERR;
}
+
static void
testing_connect_cb (void *cls)
{
@@ -540,6 +541,7 @@ run_stage (void *cls)
GNUNET_SCHEDULER_add_now (&end, NULL);
}
+
static void
run (void *cls, char *const *args, const char *cfgfile,
const struct GNUNET_CONFIGURATION_Handle *cfg)
@@ -550,6 +552,7 @@ run (void *cls, char *const *args, const char *cfgfile,
stage_task = GNUNET_SCHEDULER_add_now (&run_stage, NULL);
}
+
int
main (int argc, char *argv0[])
{
@@ -575,4 +578,5 @@ main (int argc, char *argv0[])
return ok;
}
+
/* end of transport_api_blacklisting.c */
diff --git a/src/transport/test_transport_testing_restart.c b/src/transport/test_transport_testing_restart.c
index 108c8929e..f537af5fc 100644
--- a/src/transport/test_transport_testing_restart.c
+++ b/src/transport/test_transport_testing_restart.c
@@ -159,4 +159,5 @@ main (int argc,
return ret;
}
+
/* end of test_transport_testing_restart.c */
diff --git a/src/transport/test_transport_testing_startstop.c b/src/transport/test_transport_testing_startstop.c
index 5b75a80e1..4783c1813 100644
--- a/src/transport/test_transport_testing_startstop.c
+++ b/src/transport/test_transport_testing_startstop.c
@@ -134,4 +134,5 @@ main (int argc, char *argv[])
return ret;
}
+
/* end of test_transport_testing_startstop.c */
diff --git a/src/transport/transport-testing-loggers.c b/src/transport/transport-testing-loggers.c
index 0e539eac0..330a392c6 100644
--- a/src/transport/transport-testing-loggers.c
+++ b/src/transport/transport-testing-loggers.c
@@ -50,7 +50,6 @@ GNUNET_TRANSPORT_TESTING_log_connect (void *cls,
}
-
/**
* Log a disconnect event.
*
@@ -77,4 +76,5 @@ GNUNET_TRANSPORT_TESTING_log_disconnect (void *cls,
GNUNET_free (ps);
}
+
/* end of transport-testing-loggers.c */
diff --git a/src/transport/transport-testing-main.c b/src/transport/transport-testing-main.c
index 7581120c8..8c35ff252 100644
--- a/src/transport/transport-testing-main.c
+++ b/src/transport/transport-testing-main.c
@@ -609,4 +609,5 @@ GNUNET_TRANSPORT_TESTING_main_ (const char *argv0,
return ret;
}
+
/* end of transport-testing-main.c */
diff --git a/src/transport/transport-testing-send.c b/src/transport/transport-testing-send.c
index 5885ffb03..38018c172 100644
--- a/src/transport/transport-testing-send.c
+++ b/src/transport/transport-testing-send.c
@@ -236,4 +236,5 @@ GNUNET_TRANSPORT_TESTING_large_send (void *cls)
done ? sc->cont_cls : sc);
}
+
/* end of transport-testing-send.c */
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 225f7044f..06dbe891a 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -925,4 +925,5 @@ GNUNET_TRANSPORT_TESTING_init ()
return tth;
}
+
/* end of transport-testing.c */
diff --git a/src/transport/transport_api2_monitor.c b/src/transport/transport_api2_monitor.c
index f358051b6..67aa1985e 100644
--- a/src/transport/transport_api2_monitor.c
+++ b/src/transport/transport_api2_monitor.c
@@ -288,4 +288,5 @@ GNUNET_TRANSPORT_monitor_cancel (struct GNUNET_TRANSPORT_MonitorContext *mc)
GNUNET_free (mc);
}
+
/* end of transport_api2_monitor.c */
diff --git a/src/transport/transport_api_blacklist.c b/src/transport/transport_api_blacklist.c
index 45d9bcf29..b195a7fc7 100644
--- a/src/transport/transport_api_blacklist.c
+++ b/src/transport/transport_api_blacklist.c
@@ -92,6 +92,7 @@ handle_query (void *cls,
env);
}
+
/**
* Generic error handler, called with the appropriate error code and
* the same closure specified at the creation of the message queue.
diff --git a/src/transport/transport_api_monitor_peers.c b/src/transport/transport_api_monitor_peers.c
index 956bf9e15..2f0f07f23 100644
--- a/src/transport/transport_api_monitor_peers.c
+++ b/src/transport/transport_api_monitor_peers.c
@@ -320,7 +320,6 @@ handle_response (void *cls,
}
-
/**
* Generic error handler, called with the appropriate error code and
* the same closure specified at the creation of the message queue.
diff --git a/src/transport/transport_api_monitor_plugins.c b/src/transport/transport_api_monitor_plugins.c
index 7910a57c2..d8eddddaa 100644
--- a/src/transport/transport_api_monitor_plugins.c
+++ b/src/transport/transport_api_monitor_plugins.c
@@ -93,7 +93,6 @@ struct GNUNET_TRANSPORT_PluginSession
};
-
/**
* Task run to re-establish the connection.
*