[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r34684 - in gnunet/src: ats cadet fs hostlist include peers
From: |
gnunet |
Subject: |
[GNUnet-SVN] r34684 - in gnunet/src: ats cadet fs hostlist include peerstore sensor transport |
Date: |
Thu, 18 Dec 2014 17:22:14 +0100 |
Author: grothoff
Date: 2014-12-18 17:22:14 +0100 (Thu, 18 Dec 2014)
New Revision: 34684
Modified:
gnunet/src/ats/ats.conf.in
gnunet/src/cadet/test_cadet.c
gnunet/src/fs/gnunet-service-fs_cp.c
gnunet/src/hostlist/gnunet-daemon-hostlist_client.c
gnunet/src/include/gnunet_peerstore_service.h
gnunet/src/peerstore/gnunet-service-peerstore.c
gnunet/src/peerstore/peerstore.h
gnunet/src/peerstore/peerstore_api.c
gnunet/src/peerstore/perf_peerstore_store.c
gnunet/src/peerstore/test_peerstore_api_iterate.c
gnunet/src/peerstore/test_peerstore_api_store.c
gnunet/src/peerstore/test_peerstore_api_sync.c
gnunet/src/sensor/gnunet-sensor-profiler.c
gnunet/src/sensor/gnunet-service-sensor_analysis.c
gnunet/src/sensor/gnunet-service-sensor_reporting.c
gnunet/src/transport/plugin_transport_http_common.c
Log:
-use const in peerstore callback
Modified: gnunet/src/ats/ats.conf.in
===================================================================
--- gnunet/src/ats/ats.conf.in 2014-12-18 07:54:42 UTC (rev 34683)
+++ gnunet/src/ats/ats.conf.in 2014-12-18 16:22:14 UTC (rev 34684)
@@ -35,7 +35,7 @@
# Proportional specific settings
# How proportional to preferences is bandwidth distribution in a network
# 1.0: Fair with respect to addresses without preferences
-# > 1.0: The bigger, the more respect is payed to preferences
+# > 1.0: The bigger, the more respect is payed to preferences
PROP_PROPORTIONALITY_FACTOR = 2.00
# Should we stick to existing connections are prefer to switch?
# [1.0...2.0], lower value prefers to switch, bigger value is more tolerant
@@ -47,7 +47,7 @@
# Maximum duration for a solution process (both LP and MILP)
# MLP_MAX_DURATION = 3 s
# Maximum numbero of iterations for a solution process (only LP)
-# MLP_MAX_ITERATIONS =
+# MLP_MAX_ITERATIONS =
# Tolerated MIP Gap [0.0 .. 1.0], default 0.025
MLP_MAX_MIP_GAP = 0.025
# Tolerated LP/MIP Gap [0.0 .. 1.0], default 0.025
Modified: gnunet/src/cadet/test_cadet.c
===================================================================
--- gnunet/src/cadet/test_cadet.c 2014-12-18 07:54:42 UTC (rev 34683)
+++ gnunet/src/cadet/test_cadet.c 2014-12-18 16:22:14 UTC (rev 34684)
@@ -33,7 +33,7 @@
/**
* How namy messages to send
*/
-#define TOTAL_PACKETS 20000
+#define TOTAL_PACKETS 40000
/**
* How long until we give up on connecting the peers?
Modified: gnunet/src/fs/gnunet-service-fs_cp.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.c 2014-12-18 07:54:42 UTC (rev
34683)
+++ gnunet/src/fs/gnunet-service-fs_cp.c 2014-12-18 16:22:14 UTC (rev
34684)
@@ -579,8 +579,8 @@
*/
static int
peer_respect_cb (void *cls,
- struct GNUNET_PEERSTORE_Record *record,
- char *emsg)
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
struct GSF_ConnectedPeer *cp = cls;
Modified: gnunet/src/hostlist/gnunet-daemon-hostlist_client.c
===================================================================
--- gnunet/src/hostlist/gnunet-daemon-hostlist_client.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/hostlist/gnunet-daemon-hostlist_client.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -1574,12 +1574,13 @@
else if (0 == strcmp(proxytype_str, "SOCKS4A"))
proxy_type = CURLPROXY_SOCKS4A;
else if (0 == strcmp(proxytype_str, "SOCKS5_HOSTNAME"))
- proxy_type = CURLPROXY_SOCKS5_HOSTNAME ;
+ proxy_type = CURLPROXY_SOCKS5_HOSTNAME;
else
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Invalid proxy type: `%s', disabling proxy! Check
configuration!\n"),
- proxytype_str);
+ if (0 != strcasecmp (proxytype_str, "NONE"))
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _("Invalid proxy type: `%s', disabling proxy! Check
configuration!\n"),
+ proxytype_str);
GNUNET_free (proxytype_str);
GNUNET_free (proxy);
Modified: gnunet/src/include/gnunet_peerstore_service.h
===================================================================
--- gnunet/src/include/gnunet_peerstore_service.h 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/include/gnunet_peerstore_service.h 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet
- (C)
+ (C)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -52,7 +52,7 @@
* Delete any previous values for the given key before
* storing the given value.
*/
- GNUNET_PEERSTORE_STOREOPTION_REPLACE = 1,
+ GNUNET_PEERSTORE_STOREOPTION_REPLACE = 1
};
@@ -93,7 +93,7 @@
void *value;
/**
- * Size of 'value' BLOB
+ * Size of @e value BLOB
*/
size_t value_size;
@@ -108,13 +108,15 @@
struct GNUNET_SERVER_Client *client;
};
+
/**
* Continuation called with a status result.
*
* @param cls closure
* @param success #GNUNET_OK or #GNUNET_SYSERR
*/
-typedef void (*GNUNET_PEERSTORE_Continuation)(void *cls, int success);
+typedef void
+(*GNUNET_PEERSTORE_Continuation)(void *cls, int success);
/**
* Function called by PEERSTORE for each matching record.
@@ -124,9 +126,10 @@
* @param emsg error message, or NULL if no errors
* @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop
*/
-typedef int (*GNUNET_PEERSTORE_Processor) (void *cls,
- struct GNUNET_PEERSTORE_Record *record,
- char *emsg);
+typedef int
+(*GNUNET_PEERSTORE_Processor) (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg);
/**
* Connect to the PEERSTORE service.
@@ -136,6 +139,7 @@
struct GNUNET_PEERSTORE_Handle *
GNUNET_PEERSTORE_connect (const struct GNUNET_CONFIGURATION_Handle *cfg);
+
/**
* Disconnect from the PEERSTORE service. Any pending ITERATE and WATCH
requests
* will be canceled.
@@ -145,8 +149,10 @@
* @param sync_first send any pending STORE requests before disconnecting
*/
void
-GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h, int
sync_first);
+GNUNET_PEERSTORE_disconnect (struct GNUNET_PEERSTORE_Handle *h,
+ int sync_first);
+
/**
* Store a new entry in the PEERSTORE.
* Note that stored entries can be lost in some cases
@@ -161,7 +167,7 @@
* @param expiry absolute time after which the entry is (possibly) deleted
* @param options options specific to the storage operation
* @param cont Continuation function after the store request is sent
- * @param cont_cls Closure for 'cont'
+ * @param cont_cls Closure for @a cont
*/
struct GNUNET_PEERSTORE_StoreContext *
GNUNET_PEERSTORE_store (struct GNUNET_PEERSTORE_Handle *h,
@@ -175,6 +181,7 @@
GNUNET_PEERSTORE_Continuation cont,
void *cont_cls);
+
/**
* Cancel a store request
*
@@ -183,6 +190,7 @@
void
GNUNET_PEERSTORE_store_cancel (struct GNUNET_PEERSTORE_StoreContext *sc);
+
/**
* Iterate over records matching supplied key information
*
@@ -196,12 +204,14 @@
*/
struct GNUNET_PEERSTORE_IterateContext *
GNUNET_PEERSTORE_iterate (struct GNUNET_PEERSTORE_Handle *h,
- const char *sub_system,
- const struct GNUNET_PeerIdentity *peer,
- const char *key,
- struct GNUNET_TIME_Relative timeout,
- GNUNET_PEERSTORE_Processor callback, void *callback_cls);
+ const char *sub_system,
+ const struct GNUNET_PeerIdentity *peer,
+ const char *key,
+ struct GNUNET_TIME_Relative timeout,
+ GNUNET_PEERSTORE_Processor callback,
+ void *callback_cls);
+
/**
* Cancel an iterate request
* Please do not call after the iterate request is done
@@ -211,9 +221,10 @@
void
GNUNET_PEERSTORE_iterate_cancel (struct GNUNET_PEERSTORE_IterateContext *ic);
+
/**
* Request watching a given key
- * User will be notified with any new values added to key
+ * User will be notified with any new values added to key.
*
* @param h handle to the PEERSTORE service
* @param sub_system name of sub system
@@ -225,18 +236,20 @@
*/
struct GNUNET_PEERSTORE_WatchContext *
GNUNET_PEERSTORE_watch (struct GNUNET_PEERSTORE_Handle *h,
- const char *sub_system,
- const struct GNUNET_PeerIdentity *peer,
- const char *key,
- GNUNET_PEERSTORE_Processor callback, void *callback_cls);
+ const char *sub_system,
+ const struct GNUNET_PeerIdentity *peer,
+ const char *key,
+ GNUNET_PEERSTORE_Processor callback,
+ void *callback_cls);
+
/**
* Cancel a watch request
*
* @param wc handle to the watch request
*/
void
-GNUNET_PEERSTORE_watch_cancel(struct GNUNET_PEERSTORE_WatchContext *wc);
+GNUNET_PEERSTORE_watch_cancel (struct GNUNET_PEERSTORE_WatchContext *wc);
#if 0 /* keep Emacsens' auto-indent happy */
{
Modified: gnunet/src/peerstore/gnunet-service-peerstore.c
===================================================================
--- gnunet/src/peerstore/gnunet-service-peerstore.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/peerstore/gnunet-service-peerstore.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -239,7 +239,9 @@
* @return #GNUNET_YES to continue iteration
*/
static int
-record_iterator (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+record_iterator (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
struct GNUNET_PEERSTORE_Record *cls_record = cls;
struct StoreRecordMessage *srm;
@@ -410,7 +412,7 @@
/**
- * Continuation of store_record called by the peerstore plugin
+ * Continuation of store_record called by the peerstore plugin
*
* @param cls closure
* @param success result
Modified: gnunet/src/peerstore/peerstore.h
===================================================================
--- gnunet/src/peerstore/peerstore.h 2014-12-18 07:54:42 UTC (rev 34683)
+++ gnunet/src/peerstore/peerstore.h 2014-12-18 16:22:14 UTC (rev 34684)
@@ -30,10 +30,11 @@
GNUNET_NETWORK_STRUCT_BEGIN
+
/**
* Message carrying a PEERSTORE record message
*/
- struct StoreRecordMessage
+struct StoreRecordMessage
{
/**
@@ -47,15 +48,20 @@
uint16_t peer_set GNUNET_PACKED;
/**
+ * Size of the sub_system string
+ * Allocated at position 0 after this struct
+ */
+ uint16_t sub_system_size GNUNET_PACKED;
+
+ /**
* Peer Identity
*/
struct GNUNET_PeerIdentity peer;
/**
- * Size of the sub_system string
- * Allocated at position 0 after this struct
+ * Expiry time of entry
*/
- uint16_t sub_system_size GNUNET_PACKED;
+ struct GNUNET_TIME_Absolute expiry GNUNET_PACKED;
/**
* Size of the key string
@@ -70,18 +76,14 @@
uint16_t value_size GNUNET_PACKED;
/**
- * Expiry time of entry
- */
- struct GNUNET_TIME_Absolute expiry GNUNET_PACKED;
-
- /**
* Options, needed only in case of a
* store operation
*/
- enum GNUNET_PEERSTORE_StoreOption options GNUNET_PACKED;
+ uint32_t /* enum GNUNET_PEERSTORE_StoreOption */ options GNUNET_PACKED;
};
+
/**
* Message carrying record key hash
*/
@@ -94,6 +96,11 @@
struct GNUNET_MessageHeader header;
/**
+ * Always 0, for alignment.
+ */
+ uint32_t reserved GNUNET_PACKED;
+
+ /**
* Hash of a record key
*/
struct GNUNET_HashCode keyhash;
Modified: gnunet/src/peerstore/peerstore_api.c
===================================================================
--- gnunet/src/peerstore/peerstore_api.c 2014-12-18 07:54:42 UTC (rev
34683)
+++ gnunet/src/peerstore/peerstore_api.c 2014-12-18 16:22:14 UTC (rev
34684)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- (C)
+ (C) 2013-2014 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -17,11 +17,11 @@
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
-
/**
* @file peerstore/peerstore_api.c
* @brief API for peerstore
* @author Omar Tarabai
+ * @author Christian Grothoff
*/
#include "platform.h"
#include "gnunet_util_lib.h"
@@ -292,17 +292,32 @@
* @param cls a 'struct GNUNET_PEERSTORE_WatchContext *'
*/
static void
-watch_request_sent (void *cls);
+watch_request_sent (void *cls)
+{
+ struct GNUNET_PEERSTORE_WatchContext *wc = cls;
+ wc->request_sent = GNUNET_YES;
+ wc->ev = NULL;
+}
+
+
/**
* Callback after MQ envelope is sent
*
- * @param cls a 'struct GNUNET_PEERSTORE_IterateContext *'
+ * @param cls a `struct GNUNET_PEERSTORE_IterateContext *`
*/
static void
-iterate_request_sent (void *cls);
+iterate_request_sent (void *cls)
+{
+ struct GNUNET_PEERSTORE_IterateContext *ic = cls;
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Iterate request sent to service.\n");
+ ic->iterating = GNUNET_YES;
+ ic->ev = NULL;
+}
+
/**
* Callback after MQ envelope is sent
*
@@ -724,7 +739,6 @@
callback_cls = ic->callback_cls;
if (NULL == msg) /* Connection error */
{
-
if (NULL != callback)
callback (callback_cls, NULL,
_("Error communicating with `PEERSTORE' service."));
@@ -759,23 +773,6 @@
/**
- * Callback after MQ envelope is sent
- *
- * @param cls a `struct GNUNET_PEERSTORE_IterateContext *`
- */
-static void
-iterate_request_sent (void *cls)
-{
- struct GNUNET_PEERSTORE_IterateContext *ic = cls;
-
- LOG (GNUNET_ERROR_TYPE_DEBUG,
- "Iterate request sent to service.\n");
- ic->iterating = GNUNET_YES;
- ic->ev = NULL;
-}
-
-
-/**
* Called when the iterate request is timedout
*
* @param cls a `struct GNUNET_PEERSTORE_IterateContext *`
@@ -923,21 +920,6 @@
/**
- * Callback after MQ envelope is sent
- *
- * @param cls a `struct GNUNET_PEERSTORE_WatchContext *`
- */
-static void
-watch_request_sent (void *cls)
-{
- struct GNUNET_PEERSTORE_WatchContext *wc = cls;
-
- wc->request_sent = GNUNET_YES;
- wc->ev = NULL;
-}
-
-
-/**
* Cancel a watch request
*
* @param wc handle to the watch request
Modified: gnunet/src/peerstore/perf_peerstore_store.c
===================================================================
--- gnunet/src/peerstore/perf_peerstore_store.c 2014-12-18 07:54:42 UTC (rev
34683)
+++ gnunet/src/peerstore/perf_peerstore_store.c 2014-12-18 16:22:14 UTC (rev
34684)
@@ -37,9 +37,9 @@
static char *k = "test_peerstore_stress_key";
static char *v = "test_peerstore_stress_val";
-int count = 0;
+static int count = 0;
-void
+static void
disconnect ()
{
if (NULL != h)
@@ -48,7 +48,7 @@
}
-void
+static void
store ()
{
GNUNET_PEERSTORE_store (h, ss, &p, k, v, strlen (v) + 1,
@@ -61,7 +61,9 @@
static int
-watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+watch_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
GNUNET_assert (NULL == emsg);
if (STORES == count)
Modified: gnunet/src/peerstore/test_peerstore_api_iterate.c
===================================================================
--- gnunet/src/peerstore/test_peerstore_api_iterate.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/peerstore/test_peerstore_api_iterate.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -39,8 +39,11 @@
static char *val = "test_peerstore_api_iterate_val";
static int count = 0;
+
static int
-iter3_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+iter3_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
if (NULL != emsg)
return GNUNET_NO;
@@ -58,7 +61,9 @@
static int
-iter2_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+iter2_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
if (NULL != emsg)
return GNUNET_NO;
@@ -76,7 +81,9 @@
static int
-iter1_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+iter1_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
if (NULL != emsg)
return GNUNET_NO;
Modified: gnunet/src/peerstore/test_peerstore_api_store.c
===================================================================
--- gnunet/src/peerstore/test_peerstore_api_store.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/peerstore/test_peerstore_api_store.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -37,10 +37,12 @@
static char *val2 = "test_peerstore_api_store_val2-";
static char *val3 = "test_peerstore_api_store_val3--";
-int count = 0;
+static int count = 0;
-int
-test3_cont2 (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+static int
+test3_cont2 (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
if (NULL != emsg)
return GNUNET_NO;
@@ -83,8 +85,10 @@
}
-int
-test2_cont2 (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+static int
+test2_cont2 (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
if (NULL != emsg)
return GNUNET_NO;
@@ -128,8 +132,10 @@
}
-int
-test1_cont2 (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+static int
+test1_cont2 (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
if (NULL != emsg)
return GNUNET_NO;
@@ -172,7 +178,8 @@
static void
-run (void *cls, const struct GNUNET_CONFIGURATION_Handle *cfg,
+run (void *cls,
+ const struct GNUNET_CONFIGURATION_Handle *cfg,
struct GNUNET_TESTING_Peer *peer)
{
h = GNUNET_PEERSTORE_connect (cfg);
Modified: gnunet/src/peerstore/test_peerstore_api_sync.c
===================================================================
--- gnunet/src/peerstore/test_peerstore_api_sync.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/peerstore/test_peerstore_api_sync.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -26,9 +26,9 @@
#include "gnunet_testing_lib.h"
#include "gnunet_peerstore_service.h"
-int ok = 1;
+static int ok = 1;
-const struct GNUNET_CONFIGURATION_Handle *cfg;
+static const struct GNUNET_CONFIGURATION_Handle *cfg;
static struct GNUNET_PEERSTORE_Handle *h;
@@ -37,8 +37,10 @@
static char *key = "test_peerstore_api_store_key";
static char *val = "test_peerstore_api_store_val";
-int
-iterate_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+static int
+iterate_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
const char *rec_val;
Modified: gnunet/src/sensor/gnunet-sensor-profiler.c
===================================================================
--- gnunet/src/sensor/gnunet-sensor-profiler.c 2014-12-18 07:54:42 UTC (rev
34683)
+++ gnunet/src/sensor/gnunet-sensor-profiler.c 2014-12-18 16:22:14 UTC (rev
34684)
@@ -365,8 +365,9 @@
* @return #GNUNET_YES to continue iterating, #GNUNET_NO to stop
*/
static int
-peerstore_watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record,
- char *emsg)
+peerstore_watch_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
struct PeerInfo *peer = cls;
struct GNUNET_SENSOR_DashboardAnomalyEntry *anomaly;
Modified: gnunet/src/sensor/gnunet-service-sensor_analysis.c
===================================================================
--- gnunet/src/sensor/gnunet-service-sensor_analysis.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/sensor/gnunet-service-sensor_analysis.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -189,7 +189,9 @@
* @return #GNUNET_YES
*/
static int
-sensor_watcher (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+sensor_watcher (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
struct SensorModel *model = cls;
double *val;
Modified: gnunet/src/sensor/gnunet-service-sensor_reporting.c
===================================================================
--- gnunet/src/sensor/gnunet-service-sensor_reporting.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/sensor/gnunet-service-sensor_reporting.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -1032,10 +1032,12 @@
* @param cls Closure, ValueInfo struct related to the sensor we are watching
* @param record PEERSTORE new record, NULL if error
* @param emsg Error message, NULL if no error
- * @return GNUNET_YES to continue watching
+ * @return #GNUNET_YES to continue watching
*/
static int
-value_watch_cb (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+value_watch_cb (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
struct ValueInfo *vi = cls;
Modified: gnunet/src/transport/plugin_transport_http_common.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_common.c 2014-12-18 07:54:42 UTC
(rev 34683)
+++ gnunet/src/transport/plugin_transport_http_common.c 2014-12-18 16:22:14 UTC
(rev 34684)
@@ -432,8 +432,8 @@
saddr = NULL;
sock_addr = NULL;
- if ((addrlen < sizeof(struct HttpAddress))
- || (addrlen != http_common_address_get_size (address)))
+ if ( (addrlen < sizeof(struct HttpAddress)) ||
+ (addrlen != http_common_address_get_size (address)) )
{
GNUNET_break(0);
goto handle_error;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r34684 - in gnunet/src: ats cadet fs hostlist include peerstore sensor transport,
gnunet <=