[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31740 - in gnunet/src: conversation core gns hostlist incl
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31740 - in gnunet/src: conversation core gns hostlist include scalarproduct secretsharing set testbed transport util |
Date: |
Tue, 24 Dec 2013 15:48:36 +0100 |
Author: grothoff
Date: 2013-12-24 15:48:36 +0100 (Tue, 24 Dec 2013)
New Revision: 31740
Modified:
gnunet/src/conversation/conversation_api_call.c
gnunet/src/conversation/gnunet-service-conversation.c
gnunet/src/core/test_core_api_mq.c
gnunet/src/gns/w32nsp-resolve.c
gnunet/src/hostlist/gnunet-daemon-hostlist.c
gnunet/src/hostlist/hostlist-client.c
gnunet/src/include/gnunet_mesh_service.h
gnunet/src/include/gnunet_secretsharing_service.h
gnunet/src/include/gnunet_testbed_service.h
gnunet/src/scalarproduct/scalarproduct_api.c
gnunet/src/secretsharing/gnunet-secretsharing-profiler.c
gnunet/src/secretsharing/secretsharing.h
gnunet/src/set/gnunet-service-set.c
gnunet/src/set/gnunet-service-set_intersection.c
gnunet/src/set/set_api.c
gnunet/src/set/set_protocol.h
gnunet/src/testbed/gnunet-service-testbed_cache.c
gnunet/src/testbed/gnunet-service-testbed_connectionpool.c
gnunet/src/testbed/gnunet-testbed-profiler.c
gnunet/src/testbed/testbed.h
gnunet/src/testbed/testbed_api_underlay.c
gnunet/src/transport/gnunet-helper-transport-bluetooth.c
gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c
gnunet/src/util/signal.c
Log:
-remove trailing whitespace
Modified: gnunet/src/conversation/conversation_api_call.c
===================================================================
--- gnunet/src/conversation/conversation_api_call.c 2013-12-24 14:46:02 UTC
(rev 31739)
+++ gnunet/src/conversation/conversation_api_call.c 2013-12-24 14:48:36 UTC
(rev 31740)
@@ -524,7 +524,7 @@
GNUNET_CONVERSATION_EC_CALL_ERROR);
return;
}
-
+
call->mq = GNUNET_MQ_queue_for_connection_client (call->client,
handlers,
&call_error_handler,
Modified: gnunet/src/conversation/gnunet-service-conversation.c
===================================================================
--- gnunet/src/conversation/gnunet-service-conversation.c 2013-12-24
14:46:02 UTC (rev 31739)
+++ gnunet/src/conversation/gnunet-service-conversation.c 2013-12-24
14:48:36 UTC (rev 31740)
@@ -958,7 +958,7 @@
cring.cid = ch->cid;
cring.caller_id = msg->caller_id;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Sending RING message to client. CID %u:(%u, %u)\n",
+ "Sending RING message to client. CID %u:(%u, %u)\n",
ch->cid, ch->remote_line, line->local_line);
GNUNET_SERVER_notification_context_unicast (nc,
line->client,
Modified: gnunet/src/core/test_core_api_mq.c
===================================================================
--- gnunet/src/core/test_core_api_mq.c 2013-12-24 14:46:02 UTC (rev 31739)
+++ gnunet/src/core/test_core_api_mq.c 2013-12-24 14:48:36 UTC (rev 31740)
@@ -65,7 +65,7 @@
struct GNUNET_MQ_Envelope *ev;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Queueing messages.\n");
for (i = 0; i < NUM_MSG; i++)
- {
+ {
ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_TEST);
GNUNET_MQ_send (mq, ev);
}
@@ -107,13 +107,13 @@
/**
* Initialize framework and start test
- *
+ *
* @param cls Closure (unused).
* @param cfg Configuration handle.
* @param peer Testing peer handle.
*/
static void
-run (void *cls,
+run (void *cls,
const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTING_Peer *peer)
{
Modified: gnunet/src/gns/w32nsp-resolve.c
===================================================================
--- gnunet/src/gns/w32nsp-resolve.c 2013-12-24 14:46:02 UTC (rev 31739)
+++ gnunet/src/gns/w32nsp-resolve.c 2013-12-24 14:48:36 UTC (rev 31740)
@@ -385,7 +385,7 @@
ADDRINFOW hints;
ADDRINFOW *result;
ADDRINFOW *pos;
-
+
memset (&hints, 0, sizeof (struct addrinfo));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
Modified: gnunet/src/hostlist/gnunet-daemon-hostlist.c
===================================================================
--- gnunet/src/hostlist/gnunet-daemon-hostlist.c 2013-12-24 14:46:02 UTC
(rev 31739)
+++ gnunet/src/hostlist/gnunet-daemon-hostlist.c 2013-12-24 14:48:36 UTC
(rev 31740)
@@ -204,7 +204,7 @@
static void
cleaning_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Hostlist daemon is shutting down\n");
if (core != NULL)
{
@@ -265,9 +265,9 @@
&client_adv_handler, learning);
core =
GNUNET_CORE_connect (cfg, NULL,
- &core_init,
+ &core_init,
&connect_handler,
- &disconnect_handler, NULL,
+ &disconnect_handler, NULL,
GNUNET_NO, NULL,
GNUNET_NO,
learning ? learn_handlers : no_learn_handlers);
@@ -278,7 +278,7 @@
GNUNET_HOSTLIST_server_start (cfg, stats, core, &server_ch, &server_dh,
advertising);
#endif
- GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
+ GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL,
&cleaning_task,
NULL);
Modified: gnunet/src/hostlist/hostlist-client.c
===================================================================
--- gnunet/src/hostlist/hostlist-client.c 2013-12-24 14:46:02 UTC (rev
31739)
+++ gnunet/src/hostlist/hostlist-client.c 2013-12-24 14:48:36 UTC (rev
31740)
@@ -1277,7 +1277,7 @@
}
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- _("Loading saved hostlist entries from file `%s' \n"),
+ _("Loading saved hostlist entries from file `%s' \n"),
filename);
if (GNUNET_NO == GNUNET_DISK_file_test (filename))
{
Modified: gnunet/src/include/gnunet_mesh_service.h
===================================================================
--- gnunet/src/include/gnunet_mesh_service.h 2013-12-24 14:46:02 UTC (rev
31739)
+++ gnunet/src/include/gnunet_mesh_service.h 2013-12-24 14:48:36 UTC (rev
31740)
@@ -145,7 +145,7 @@
* the other peer initiated.
* Only called (once) upon reception of data with a message type which was
* subscribed to in #GNUNET_MESH_connect.
- *
+ *
* A call to #GNUNET_MESH_channel_destroy causes te channel to be ignored. In
* this case the handler MUST return NULL.
*
Modified: gnunet/src/include/gnunet_secretsharing_service.h
===================================================================
--- gnunet/src/include/gnunet_secretsharing_service.h 2013-12-24 14:46:02 UTC
(rev 31739)
+++ gnunet/src/include/gnunet_secretsharing_service.h 2013-12-24 14:48:36 UTC
(rev 31740)
@@ -246,7 +246,7 @@
* Convert a share to its binary representation. Use
* #GNUNET_SECRETSHARING_share_size to get the necessary size for the binary
* representation.
- *
+ *
* @param share share to write
* @param buf buffer to write to
* @param buflen number of writable bytes in @a buffer
Modified: gnunet/src/include/gnunet_testbed_service.h
===================================================================
--- gnunet/src/include/gnunet_testbed_service.h 2013-12-24 14:46:02 UTC (rev
31739)
+++ gnunet/src/include/gnunet_testbed_service.h 2013-12-24 14:48:36 UTC (rev
31740)
@@ -1653,7 +1653,7 @@
/**
* Set the metrics for a link to the given peer in the underlay model. The
link
* SHOULD be permittable according to the given model.
- *
+ *
* @ingroup underlay
* @param model the model
* @param peer the other end peer of the link
Modified: gnunet/src/scalarproduct/scalarproduct_api.c
===================================================================
--- gnunet/src/scalarproduct/scalarproduct_api.c 2013-12-24 14:46:02 UTC
(rev 31739)
+++ gnunet/src/scalarproduct/scalarproduct_api.c 2013-12-24 14:48:36 UTC
(rev 31740)
@@ -318,7 +318,7 @@
* @param element_count Number of elements in the vector
* @param cont Callback function
* @param cont_cls Closure for the callback function
- *
+ *
* @return a new handle for this computation
*/
struct GNUNET_SCALARPRODUCT_ComputationHandle *
@@ -408,7 +408,7 @@
* @param mask_bytes number of bytes in the mask
* @param cont Callback function
* @param cont_cls Closure for the callback function
- *
+ *
* @return a new handle for this computation
*/
struct GNUNET_SCALARPRODUCT_ComputationHandle *
Modified: gnunet/src/secretsharing/gnunet-secretsharing-profiler.c
===================================================================
--- gnunet/src/secretsharing/gnunet-secretsharing-profiler.c 2013-12-24
14:46:02 UTC (rev 31739)
+++ gnunet/src/secretsharing/gnunet-secretsharing-profiler.c 2013-12-24
14:48:36 UTC (rev 31740)
@@ -1,5 +1,5 @@
-int
-main ()
-{
- return 0;
-}
+int
+main ()
+{
+ return 0;
+}
Modified: gnunet/src/secretsharing/secretsharing.h
===================================================================
--- gnunet/src/secretsharing/secretsharing.h 2013-12-24 14:46:02 UTC (rev
31739)
+++ gnunet/src/secretsharing/secretsharing.h 2013-12-24 14:48:36 UTC (rev
31740)
@@ -53,7 +53,7 @@
struct GNUNET_TIME_AbsoluteNBO deadline;
/**
- * Mininum number of cooperating peers to decrypt a
+ * Mininum number of cooperating peers to decrypt a
* value.
*/
uint16_t threshold GNUNET_PACKED;
Modified: gnunet/src/set/gnunet-service-set.c
===================================================================
--- gnunet/src/set/gnunet-service-set.c 2013-12-24 14:46:02 UTC (rev 31739)
+++ gnunet/src/set/gnunet-service-set.c 2013-12-24 14:48:36 UTC (rev 31740)
@@ -517,7 +517,7 @@
{
struct GNUNET_MQ_Envelope *mqm;
struct GNUNET_SET_RequestMessage *cmsg;
-
+
GNUNET_assert (GNUNET_YES == incoming->is_incoming);
GNUNET_assert (NULL != incoming->state);
GNUNET_assert (NULL != incoming->spec);
Modified: gnunet/src/set/gnunet-service-set_intersection.c
===================================================================
--- gnunet/src/set/gnunet-service-set_intersection.c 2013-12-24 14:46:02 UTC
(rev 31739)
+++ gnunet/src/set/gnunet-service-set_intersection.c 2013-12-24 14:48:36 UTC
(rev 31740)
@@ -93,12 +93,12 @@
* size of the bloomfilter
*/
uint32_t bf_data_size;
-
+
/**
* size of the bloomfilter
*/
uint32_t bf_bits_per_element;
-
+
/**
* Current state of the operation.
*/
@@ -445,7 +445,7 @@
struct GNUNET_CONTAINER_BloomFilter * local_bf;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "sending bf of size %u\n");
-
+
CALCULATE_BF_SIZE(op->state->my_element_count,
op->spec->remote_element_count,
bf_size,
@@ -586,7 +586,7 @@
process_bf (struct Operation *op){
uint32_t old_elements;
uint32_t peer_elements;
-
+
old_elements = op->state->my_element_count;
peer_elements = op->spec->remote_element_count;
switch (op->state->phase)
@@ -650,18 +650,18 @@
const struct BFPart *msg = (const struct BFPart *) mh;
uint32_t chunk_size;
uint32_t chunk_offset;
-
+
chunk_size = ntohl(msg->chunk_length);
chunk_offset = ntohl(msg->chunk_offset);
-
- if ((NULL == op->state->bf_data)
+
+ if ((NULL == op->state->bf_data)
|| (op->state->bf_data_size < chunk_size + chunk_offset)){
// unexpected multipart chunk
GNUNET_break_op (0);
fail_intersection_operation(op);
return;
}
-
+
memcpy (&op->state->bf_data[chunk_offset], (const char*) &msg[1],
chunk_size);
if (op->state->bf_data_size != chunk_offset + chunk_size)
@@ -671,10 +671,10 @@
op->state->remote_bf = GNUNET_CONTAINER_bloomfilter_init ((const char*)
&msg[1],
op->state->bf_data_size,
op->state->bf_bits_per_element);
-
+
GNUNET_free (op->state->bf_data);
op->state->bf_data = NULL;
-
+
process_bf (op);
}
@@ -750,7 +750,7 @@
op->state->phase = PHASE_BF_EXCHANGE;
op->state->my_elements = GNUNET_CONTAINER_multihashmap_create (1,
GNUNET_YES);
-
+
GNUNET_CONTAINER_multihashmap_iterate (op->spec->set->elements,
&iterator_initialization,
op);
Modified: gnunet/src/set/set_api.c
===================================================================
--- gnunet/src/set/set_api.c 2013-12-24 14:46:02 UTC (rev 31739)
+++ gnunet/src/set/set_api.c 2013-12-24 14:48:36 UTC (rev 31740)
@@ -428,7 +428,7 @@
}
GNUNET_free (oh);
-
+
return ret;
}
Modified: gnunet/src/set/set_protocol.h
===================================================================
--- gnunet/src/set/set_protocol.h 2013-12-24 14:46:02 UTC (rev 31739)
+++ gnunet/src/set/set_protocol.h 2013-12-24 14:48:36 UTC (rev 31740)
@@ -53,7 +53,7 @@
* For Intersection: my element count
*/
uint32_t element_count;
-
+
/**
* Application-specific identifier of the request.
*/
@@ -104,7 +104,7 @@
* mutator used with this bloomfilter.
*/
uint32_t sender_element_count GNUNET_PACKED;
-
+
/**
* mutator used with this bloomfilter.
*/
@@ -114,17 +114,17 @@
* Length of the bloomfilter data
*/
uint32_t bloomfilter_total_length GNUNET_PACKED;
-
+
/**
* Length of the appended bloomfilter data block
*/
uint32_t bloomfilter_length GNUNET_PACKED;
-
+
/**
* Length of the bloomfilter data
*/
uint32_t bits_per_element GNUNET_PACKED;
-
+
/**
* rest: the sender's bloomfilter
*/
@@ -141,12 +141,12 @@
* Length of the appended bloomfilter data block
*/
uint32_t chunk_length GNUNET_PACKED;
-
+
/**
* offset in the bloolfilter data block, if multipart message
*/
uint32_t chunk_offset GNUNET_PACKED;
-
+
/**
* rest: the sender's bloomfilter
*/
Modified: gnunet/src/testbed/gnunet-service-testbed_cache.c
===================================================================
--- gnunet/src/testbed/gnunet-service-testbed_cache.c 2013-12-24 14:46:02 UTC
(rev 31739)
+++ gnunet/src/testbed/gnunet-service-testbed_cache.c 2013-12-24 14:48:36 UTC
(rev 31740)
@@ -121,7 +121,7 @@
add_entry (unsigned int peer_id)
{
struct CacheEntry *entry;
-
+
GNUNET_assert (NULL != cache);
if (cache_size == GNUNET_CONTAINER_multihashmap32_size (cache))
{
Modified: gnunet/src/testbed/gnunet-service-testbed_connectionpool.c
===================================================================
--- gnunet/src/testbed/gnunet-service-testbed_connectionpool.c 2013-12-24
14:46:02 UTC (rev 31739)
+++ gnunet/src/testbed/gnunet-service-testbed_connectionpool.c 2013-12-24
14:48:36 UTC (rev 31740)
@@ -895,7 +895,7 @@
}
}
if (gh->notify_waiting)
- {
+ {
GNUNET_CONTAINER_DLL_remove (entry->head_notify, entry->tail_notify, gh);
gh->notify_waiting = 0;
}
Modified: gnunet/src/testbed/gnunet-testbed-profiler.c
===================================================================
--- gnunet/src/testbed/gnunet-testbed-profiler.c 2013-12-24 14:46:02 UTC
(rev 31739)
+++ gnunet/src/testbed/gnunet-testbed-profiler.c 2013-12-24 14:48:36 UTC
(rev 31740)
@@ -230,7 +230,7 @@
result = GNUNET_OK;
fprintf (stdout, "\n");
print_overlay_links_summary ();
- if (noninteractive)
+ if (noninteractive)
{
GNUNET_SCHEDULER_cancel (abort_task);
abort_task = GNUNET_SCHEDULER_NO_TASK;
Modified: gnunet/src/testbed/testbed.h
===================================================================
--- gnunet/src/testbed/testbed.h 2013-12-24 14:46:02 UTC (rev 31739)
+++ gnunet/src/testbed/testbed.h 2013-12-24 14:48:36 UTC (rev 31740)
@@ -790,7 +790,7 @@
* The number of link properties contained in this message
*/
uint32_t nprops GNUNET_PACKED;
-
+
/**
* Array of ids of peers to be in the blacklist/whitelist. Each id is of
type
* uint32_t. Number of ids should be equal to nentries.
@@ -801,7 +801,7 @@
* sequence of four integers of type uint32_t: peer_id, latency, loss and
* bandwidth.
*/
-
+
};
Modified: gnunet/src/testbed/testbed_api_underlay.c
===================================================================
--- gnunet/src/testbed/testbed_api_underlay.c 2013-12-24 14:46:02 UTC (rev
31739)
+++ gnunet/src/testbed/testbed_api_underlay.c 2013-12-24 14:48:36 UTC (rev
31740)
@@ -21,7 +21,7 @@
/**
* @file testbed/testbed_api_underlay.c
* @brief testbed underlay API implementation
- * @author Sree Harsha Totakura <address@hidden>
+ * @author Sree Harsha Totakura <address@hidden>
*/
#include "testbed_api_peers.h"
@@ -46,7 +46,7 @@
* latency of the link in microseconds
*/
uint32_t latency;
-
+
/**
* data loss on the link expressed as percentage
*/
@@ -154,7 +154,7 @@
enum
GNUNET_TESTBED_UnderlayLinkModelType type)
{
struct GNUNET_TESTBED_UnderlayLinkModel *m;
-
+
GNUNET_assert (0 == peer->underlay_model_exists);
m = GNUNET_new (struct GNUNET_TESTBED_UnderlayLinkModel);
peer->underlay_model_exists = 1;
@@ -188,7 +188,7 @@
/**
* Set the metrics for a link to the given peer in the underlay model. The
link
* SHOULD be permittable according to the given model.
- *
+ *
* @ingroup underlay
* @param model the model
* @param peer the other end peer of the link
Modified: gnunet/src/transport/gnunet-helper-transport-bluetooth.c
===================================================================
--- gnunet/src/transport/gnunet-helper-transport-bluetooth.c 2013-12-24
14:46:02 UTC (rev 31739)
+++ gnunet/src/transport/gnunet-helper-transport-bluetooth.c 2013-12-24
14:48:36 UTC (rev 31740)
@@ -1088,7 +1088,7 @@
addr.btAddr = 0;
addr.port = BT_PORT_ANY;
- if (GNUNET_OK !=
+ if (GNUNET_OK !=
GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof
(SOCKADDR_BTH)))
{
fprintf (stderr, "Failed to bind the socket: ");
Modified: gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c
===================================================================
--- gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c 2013-12-24
14:46:02 UTC (rev 31739)
+++ gnunet/src/transport/gnunet-helper-transport-wlan-dummy.c 2013-12-24
14:48:36 UTC (rev 31740)
@@ -315,7 +315,7 @@
signal (SIGINT, &sigfunc);
signal (SIGTERM, &sigfunc);
signal (GNUNET_TERM_SIG, &sigfunc);
-
+
write_std.size = 0;
write_std.pos = 0;
write_pout.size = 0;
Modified: gnunet/src/util/signal.c
===================================================================
--- gnunet/src/util/signal.c 2013-12-24 14:46:02 UTC (rev 31739)
+++ gnunet/src/util/signal.c 2013-12-24 14:48:36 UTC (rev 31740)
@@ -120,7 +120,7 @@
GNUNET_SIGNAL_raise (const int sig)
{
struct GNUNET_SIGNAL_Context *ctx;
-
+
for (ctx = sc_head; NULL != ctx; ctx = ctx->next)
{
if (sig != ctx->sig)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31740 - in gnunet/src: conversation core gns hostlist include scalarproduct secretsharing set testbed transport util,
gnunet <=