[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r6993 - in GNUnet: libltdl src/applications/datastore src/a
From: |
gnunet |
Subject: |
[GNUnet-SVN] r6993 - in GNUnet: libltdl src/applications/datastore src/applications/dht/tools src/applications/fs/collection src/applications/fs/ecrs src/applications/fs/tools src/applications/sqstore_mysql src/applications/testing src/include src/server src/setup/lib src/setup/ncurses src/transports src/util/network src/util/network_client |
Date: |
Sun, 1 Jun 2008 20:53:01 -0600 (MDT) |
Author: grothoff
Date: 2008-06-01 20:52:58 -0600 (Sun, 01 Jun 2008)
New Revision: 6993
Modified:
GNUnet/libltdl/ltdl.c
GNUnet/src/applications/datastore/datastore.c
GNUnet/src/applications/dht/tools/dht_api.c
GNUnet/src/applications/fs/collection/collection.c
GNUnet/src/applications/fs/ecrs/namespace.c
GNUnet/src/applications/fs/ecrs/namespacetest.c
GNUnet/src/applications/fs/tools/gnunet-unindex.c
GNUnet/src/applications/sqstore_mysql/mysql.c
GNUnet/src/applications/testing/remote.c
GNUnet/src/applications/testing/remotetopologies.c
GNUnet/src/applications/testing/testing.c
GNUnet/src/include/gnunet_protocols.h
GNUnet/src/server/connection.c
GNUnet/src/setup/lib/gns.c
GNUnet/src/setup/ncurses/mconf.c
GNUnet/src/transports/http.c
GNUnet/src/util/network/dns.c
GNUnet/src/util/network_client/tcpio.c
Log:
whitespace
Modified: GNUnet/libltdl/ltdl.c
===================================================================
--- GNUnet/libltdl/ltdl.c 2008-06-02 02:51:16 UTC (rev 6992)
+++ GNUnet/libltdl/ltdl.c 2008-06-02 02:52:58 UTC (rev 6993)
@@ -1770,9 +1770,9 @@
*) (((struct
dylib_command
*)
- lc)->dylib.
- name.offset
- +
+ lc)->
+ dylib.name.
+ offset +
(unsigned
long)
lc));
Modified: GNUnet/src/applications/datastore/datastore.c
===================================================================
--- GNUnet/src/applications/datastore/datastore.c 2008-06-02 02:51:16 UTC
(rev 6992)
+++ GNUnet/src/applications/datastore/datastore.c 2008-06-02 02:52:58 UTC
(rev 6993)
@@ -389,9 +389,9 @@
stat_filter_failed =
stats->create (gettext_noop ("# bloom filter false positives"));
- stats->
- set (stats->create (gettext_noop ("# bytes allowed in datastore")),
- quota);
+ stats->set (stats->
+ create (gettext_noop ("# bytes allowed in datastore")),
+ quota);
}
state = capi->service_request ("state");
if (state != NULL)
Modified: GNUnet/src/applications/dht/tools/dht_api.c
===================================================================
--- GNUnet/src/applications/dht/tools/dht_api.c 2008-06-02 02:51:16 UTC (rev
6992)
+++ GNUnet/src/applications/dht/tools/dht_api.c 2008-06-02 02:52:58 UTC (rev
6993)
@@ -87,7 +87,7 @@
sock = GNUNET_client_connection_create (ectx, cfg);
if (sock == NULL)
- return NULL;
+ return NULL;
ctx = GNUNET_malloc (sizeof (struct GNUNET_DHT_Context));
ctx->sock = sock;
Modified: GNUnet/src/applications/fs/collection/collection.c
===================================================================
--- GNUnet/src/applications/fs/collection/collection.c 2008-06-02 02:51:16 UTC
(rev 6992)
+++ GNUnet/src/applications/fs/collection/collection.c 2008-06-02 02:52:58 UTC
(rev 6993)
@@ -353,12 +353,12 @@
for (i = 0; i < collectionData->file_count; i++)
{
mlen =
- GNUNET_ECRS_meta_data_get_serialized_size (collectionData->
- files[i].meta, GNUNET_NO);
+ GNUNET_ECRS_meta_data_get_serialized_size (collectionData->files[i].
+ meta, GNUNET_NO);
buf = GNUNET_malloc (mlen);
if (mlen != GNUNET_ECRS_meta_data_serialize (ectx,
- collectionData->
- files[i].meta, buf, mlen,
+ collectionData->files[i].
+ meta, buf, mlen,
GNUNET_NO))
{
GNUNET_GE_BREAK (ectx, 0);
@@ -577,9 +577,12 @@
GNUNET_OK == GNUNET_ECRS_directory_create (ectx,
&dirData,
&dirLen,
-
collectionData->file_count,
-
collectionData->files,
-
collectionData->meta));
+ collectionData->
+ file_count,
+ collectionData->
+ files,
+ collectionData->
+ meta));
if (-1 == WRITE (fd, dirData, dirLen))
{
GNUNET_GE_LOG_STRERROR (ectx,
@@ -593,10 +596,10 @@
GNUNET_free (dirData);
CLOSE (fd);
if (GNUNET_OK != GNUNET_ECRS_file_upload (ectx, cfg, tmpName, GNUNET_NO,
/* indexing */
- ntohl (collectionData->
- data.anonymityLevel),
- ntohl (collectionData->
- data.priority),
+ ntohl (collectionData->data.
+ anonymityLevel),
+ ntohl (collectionData->data.
+ priority),
GNUNET_get_time () +
COLLECTION_ADV_LIFETIME, NULL,
NULL, NULL, NULL, &directoryURI))
@@ -611,14 +614,14 @@
uri = GNUNET_ECRS_namespace_add_content (ectx,
cfg,
&collectionData->data.pid,
- ntohl (collectionData->
- data.anonymityLevel),
- ntohl (collectionData->
- data.priority),
+ ntohl (collectionData->data.
+ anonymityLevel),
+ ntohl (collectionData->data.
+ priority),
GNUNET_get_time () +
COLLECTION_ADV_LIFETIME, now,
- ntohl (collectionData->
- data.updateInterval),
+ ntohl (collectionData->data.
+ updateInterval),
&collectionData->data.lastId,
&collectionData->data.nextId,
directoryURI,
Modified: GNUnet/src/applications/fs/ecrs/namespace.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/namespace.c 2008-06-02 02:51:16 UTC (rev
6992)
+++ GNUnet/src/applications/fs/ecrs/namespace.c 2008-06-02 02:52:58 UTC (rev
6993)
@@ -309,8 +309,8 @@
(GNUNET_EC_NBlock) +
mdsize,
&knb->nblock,
- &knb->
- kblock.signature));
+ &knb->kblock.
+ signature));
/* extra check: verify sig */
GNUNET_RSA_free_key (pk);
if (GNUNET_OK != GNUNET_FS_insert (sock, knvalue))
Modified: GNUnet/src/applications/fs/ecrs/namespacetest.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/namespacetest.c 2008-06-02 02:51:16 UTC
(rev 6992)
+++ GNUnet/src/applications/fs/ecrs/namespacetest.c 2008-06-02 02:52:58 UTC
(rev 6993)
@@ -81,17 +81,16 @@
rootURI =
GNUNET_ECRS_namespace_create (NULL,
cfg,
- meta,
+ meta,
0, 0,
GNUNET_get_time () +
- 15 * GNUNET_CRON_MINUTES,
- adv, &root);
- GNUNET_ECRS_uri_get_namespace_from_sks(rootURI, &pid);
+ 15 * GNUNET_CRON_MINUTES, adv, &root);
+ GNUNET_ECRS_uri_get_namespace_from_sks (rootURI, &pid);
CHECK (NULL != rootURI);
GNUNET_hash ("this", 4, &thisId);
GNUNET_hash ("next", 4, &nextId);
uri = rootURI; /* just for fun: NS::this advertises NS::root
*/
- advURI = GNUNET_ECRS_namespace_add_content (NULL, cfg, &pid, 1, /*
anonymity */
+ advURI = GNUNET_ECRS_namespace_add_content (NULL, cfg, &pid, 1, /*
anonymity */
1000, /* priority */
5 * GNUNET_CRON_MINUTES +
GNUNET_get_time (),
@@ -105,8 +104,7 @@
advURI, 1, &spcb, uri, &tt, NULL));
fprintf (stderr, "Completed namespace search...\n");
CHECK (GNUNET_OK == GNUNET_ECRS_namespace_delete (NULL, cfg, &pid));
- CHECK (GNUNET_SYSERR ==
- GNUNET_ECRS_namespace_delete (NULL, cfg, &pid));
+ CHECK (GNUNET_SYSERR == GNUNET_ECRS_namespace_delete (NULL, cfg, &pid));
GNUNET_ECRS_meta_data_destroy (meta);
GNUNET_ECRS_uri_destroy (rootURI);
GNUNET_ECRS_uri_destroy (advURI);
Modified: GNUnet/src/applications/fs/tools/gnunet-unindex.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-unindex.c 2008-06-02 02:51:16 UTC
(rev 6992)
+++ GNUnet/src/applications/fs/tools/gnunet-unindex.c 2008-06-02 02:52:58 UTC
(rev 6993)
@@ -75,9 +75,9 @@
event->data.UnindexCompleted.total,
delta / GNUNET_CRON_SECONDS,
(delta ==
- 0) ? (double) (-1.0) : (double) (event->
- data.UnindexCompleted.
- total / 1024.0 *
+ 0) ? (double) (-1.0) : (double) (event->data.
+ UnindexCompleted.total /
+ 1024.0 *
GNUNET_CRON_SECONDS /
delta));
}
Modified: GNUnet/src/applications/sqstore_mysql/mysql.c
===================================================================
--- GNUnet/src/applications/sqstore_mysql/mysql.c 2008-06-02 02:51:16 UTC
(rev 6992)
+++ GNUnet/src/applications/sqstore_mysql/mysql.c 2008-06-02 02:52:58 UTC
(rev 6993)
@@ -1273,8 +1273,8 @@
if (type != 0)
stmt =
(vhash !=
- NULL) ? dbh->
- count_entry_by_hash_vhash_and_type : dbh->count_entry_by_hash_and_type;
+ NULL) ? dbh->count_entry_by_hash_vhash_and_type : dbh->
+ count_entry_by_hash_and_type;
else
stmt =
(vhash !=
@@ -1416,8 +1416,8 @@
else
stmt =
(vhash !=
- NULL) ? dbh->
- select_entry_by_hash_and_vhash : dbh->select_entry_by_hash;
+ NULL) ? dbh->select_entry_by_hash_and_vhash : dbh->
+ select_entry_by_hash;
if (count == 0)
limit_off = off;
else
Modified: GNUnet/src/applications/testing/remote.c
===================================================================
--- GNUnet/src/applications/testing/remote.c 2008-06-02 02:51:16 UTC (rev
6992)
+++ GNUnet/src/applications/testing/remote.c 2008-06-02 02:52:58 UTC (rev
6993)
@@ -421,7 +421,8 @@
GNUNET_REMOTE_start_daemon (remote_gnunetd_path, "/tmp/",
temp, remote_config_path,
curr_host, ssh_username,
-
temp_pos->remote_friend_file_path);
+ temp_pos->
+ remote_friend_file_path);
GNUNET_GC_get_configuration_value_number (basecfg,
"NETWORK",
Modified: GNUnet/src/applications/testing/remotetopologies.c
===================================================================
--- GNUnet/src/applications/testing/remotetopologies.c 2008-06-02 02:51:16 UTC
(rev 6992)
+++ GNUnet/src/applications/testing/remotetopologies.c 2008-06-02 02:52:58 UTC
(rev 6993)
@@ -370,13 +370,15 @@
{
fprintf (stderr, ".");
if (GNUNET_YES == GNUNET_IDENTITY_request_connect (sock1,
-
&h2->senderIdentity))
+ &h2->
+
senderIdentity))
{
ret = GNUNET_OK;
break;
}
if (GNUNET_YES == GNUNET_IDENTITY_request_connect (sock2,
-
&h1->senderIdentity))
+ &h1->
+
senderIdentity))
{
ret = GNUNET_OK;
break;
Modified: GNUnet/src/applications/testing/testing.c
===================================================================
--- GNUnet/src/applications/testing/testing.c 2008-06-02 02:51:16 UTC (rev
6992)
+++ GNUnet/src/applications/testing/testing.c 2008-06-02 02:52:58 UTC (rev
6993)
@@ -277,7 +277,8 @@
{
fprintf (stderr, ".");
if (GNUNET_YES == GNUNET_IDENTITY_request_connect (sock1,
-
&h2->senderIdentity))
+ &h2->
+
senderIdentity))
{
ret = GNUNET_OK;
GNUNET_free_non_null (h1);
@@ -285,7 +286,8 @@
break;
}
if (GNUNET_YES == GNUNET_IDENTITY_request_connect (sock2,
-
&h1->senderIdentity))
+ &h1->
+
senderIdentity))
{
ret = GNUNET_OK;
GNUNET_free_non_null (h1);
Modified: GNUnet/src/include/gnunet_protocols.h
===================================================================
--- GNUnet/src/include/gnunet_protocols.h 2008-06-02 02:51:16 UTC (rev
6992)
+++ GNUnet/src/include/gnunet_protocols.h 2008-06-02 02:52:58 UTC (rev
6993)
@@ -277,7 +277,7 @@
* Client to CS or CS to client: put into table
*/
#define GNUNET_CS_PROTO_DHT_REQUEST_PUT 61
-/**
+/**
* Client to CS: end get from table (ends request)
*/
#define GNUNET_CS_PROTO_DHT_REQUEST_GET_END 62
Modified: GNUnet/src/server/connection.c
===================================================================
--- GNUnet/src/server/connection.c 2008-06-02 02:51:16 UTC (rev 6992)
+++ GNUnet/src/server/connection.c 2008-06-02 02:52:58 UTC (rev 6993)
@@ -721,8 +721,8 @@
if (root->session.tsession != NULL)
GNUNET_GE_ASSERT (NULL,
GNUNET_OK ==
- transport->assert_associated (root->
- session.tsession,
+ transport->assert_associated (root->session.
+ tsession,
__FILE__));
root = root->overflowChain;
}
@@ -1903,8 +1903,8 @@
stats->change (stat_transmitted, p);
be->available_send_window -= p;
be->lastSequenceNumberSend++;
- GNUNET_CORE_connection_reserve_downstream_bandwidth (&be->
- session.sender, 0);
+ GNUNET_CORE_connection_reserve_downstream_bandwidth (&be->session.
+ sender, 0);
if (be->idealized_limit > be->max_transmitted_limit)
be->max_transmitted_limit = be->idealized_limit;
else /* age */
@@ -2484,8 +2484,8 @@
{
IF_GELOG (ectx,
GNUNET_GE_INFO | GNUNET_GE_BULK | GNUNET_GE_USER,
- GNUNET_hash_to_enc (&entries[u]->session.
- sender.hashPubKey, &enc));
+ GNUNET_hash_to_enc (&entries[u]->session.sender.
+ hashPubKey, &enc));
GNUNET_GE_LOG (ectx,
GNUNET_GE_INFO | GNUNET_GE_BULK | GNUNET_GE_USER,
"peer `%s' transmitted above limit: %llu bpm > %u
bpm\n",
@@ -2508,8 +2508,8 @@
#if DEBUG_CONNECTION
IF_GELOG (ectx,
GNUNET_GE_INFO | GNUNET_GE_BULK | GNUNET_GE_DEVELOPER,
- GNUNET_hash_to_enc (&entries[u]->session.
- sender.hashPubKey, &enc));
+ GNUNET_hash_to_enc (&entries[u]->session.sender.
+ hashPubKey, &enc));
GNUNET_GE_LOG (ectx,
GNUNET_GE_INFO | GNUNET_GE_BULK |
GNUNET_GE_DEVELOPER,
@@ -2570,8 +2570,8 @@
for (u = 0; u < activePeerCount; u++)
{
GNUNET_CORE_connection_reserve_downstream_bandwidth (&entries
- [u]->session.
- sender, 0);
+ [u]->
+ session.sender, 0);
entries[u]->idealized_limit = 0;
}
while ((schedulableBandwidth > activePeerCount * 100) &&
@@ -2905,8 +2905,8 @@
IF_GELOG (ectx,
GNUNET_GE_DEBUG | GNUNET_GE_REQUEST |
GNUNET_GE_DEVELOPER,
- GNUNET_hash_to_enc (&root->session.
- sender.hashPubKey, &enc));
+ GNUNET_hash_to_enc (&root->session.sender.
+ hashPubKey, &enc));
GNUNET_GE_LOG (ectx,
GNUNET_GE_DEBUG | GNUNET_GE_REQUEST |
GNUNET_GE_DEVELOPER,
@@ -3009,8 +3009,8 @@
IF_GELOG (ectx,
GNUNET_GE_DEBUG | GNUNET_GE_REQUEST |
GNUNET_GE_DEVELOPER,
- GNUNET_hash_to_enc (&root->session.
- sender.hashPubKey, &enc));
+ GNUNET_hash_to_enc (&root->session.sender.
+ hashPubKey, &enc));
GNUNET_GE_LOG (ectx,
GNUNET_GE_DEBUG | GNUNET_GE_REQUEST |
GNUNET_GE_DEVELOPER,
Modified: GNUnet/src/setup/lib/gns.c
===================================================================
--- GNUnet/src/setup/lib/gns.c 2008-06-02 02:51:16 UTC (rev 6992)
+++ GNUnet/src/setup/lib/gns.c 2008-06-02 02:52:58 UTC (rev 6993)
@@ -123,8 +123,8 @@
val = GNUNET_GC_get_configuration_value_yesno (cfg,
section,
option,
- pos->value.
- Boolean.def);
+ pos->value.Boolean.
+ def);
if (val == GNUNET_SYSERR)
{
return GNUNET_SYSERR;
@@ -139,9 +139,18 @@
if (GNUNET_SYSERR == GNUNET_GC_get_configuration_value_number (cfg,
section,
option,
-
pos->value.UInt64.min,
-
pos->value.UInt64.max,
-
pos->value.UInt64.def,
+ pos->
+ value.
+ UInt64.
+ min,
+ pos->
+ value.
+ UInt64.
+ max,
+ pos->
+ value.
+ UInt64.
+ def,
&val))
{
return GNUNET_SYSERR;
@@ -186,7 +195,10 @@
if (GNUNET_SYSERR == GNUNET_GC_get_configuration_value_string (cfg,
section,
option,
-
pos->value.String.def,
+ pos->
+ value.
+ String.
+ def,
&val))
return GNUNET_SYSERR;
GNUNET_free (pos->value.String.val);
@@ -203,8 +215,14 @@
(const
char
**)
-
pos->value.String.legalRange,
-
pos->value.String.def,
+ pos->
+ value.
+ String.
+
legalRange,
+ pos->
+ value.
+ String.
+ def,
&ival))
return GNUNET_SYSERR;
GNUNET_free (pos->value.String.val);
Modified: GNUnet/src/setup/ncurses/mconf.c
===================================================================
--- GNUnet/src/setup/ncurses/mconf.c 2008-06-02 02:51:16 UTC (rev 6992)
+++ GNUnet/src/setup/ncurses/mconf.c 2008-06-02 02:52:58 UTC (rev 6993)
@@ -179,8 +179,10 @@
case DLG_EXIT_CANCEL:
if (0 != GNUNET_GC_set_configuration_value_string (cfg,
ectx,
-
pos->section,
-
pos->option,
+ pos->
+ section,
+ pos->
+ option,
st ==
DLG_EXIT_OK
? "YES" :
@@ -215,9 +217,12 @@
case DLG_EXIT_OK:
if (0 != GNUNET_GC_set_configuration_value_string (cfg,
ectx,
-
pos->section,
-
pos->option,
-
fitem.text))
+ pos->
+ section,
+ pos->
+ option,
+ fitem.
+ text))
{
show_help (pos->option,
gettext_noop
@@ -279,9 +284,13 @@
case DLG_EXIT_OK:
if (0 != GNUNET_GC_set_configuration_value_choice (cfg,
ectx,
-
pos->section,
-
pos->option,
-
val->String.legalRange
+ pos->
+ section,
+ pos->
+ option,
+ val->
+ String.
+ legalRange
[msel]))
{
show_help (pos->option,
@@ -360,8 +369,10 @@
tmp[strlen (tmp) - 1] = '\0';
if (0 != GNUNET_GC_set_configuration_value_choice (cfg,
ectx,
-
pos->section,
-
pos->option,
+ pos->
+ section,
+ pos->
+ option,
tmp))
{
GNUNET_free (tmp);
@@ -405,9 +416,12 @@
}
if (0 != GNUNET_GC_set_configuration_value_string (cfg,
ectx,
-
pos->section,
-
pos->option,
-
fitem.text))
+ pos->
+ section,
+ pos->
+ option,
+ fitem.
+ text))
{
show_help (pos->option,
gettext_noop
@@ -456,8 +470,10 @@
}
if (0 != GNUNET_GC_set_configuration_value_number (cfg,
ectx,
-
pos->section,
-
pos->option,
+ pos->
+
section,
+ pos->
+
option,
lval))
{
show_help (pos->option,
Modified: GNUnet/src/transports/http.c
===================================================================
--- GNUnet/src/transports/http.c 2008-06-02 02:51:16 UTC (rev 6992)
+++ GNUnet/src/transports/http.c 2008-06-02 02:52:58 UTC (rev 6993)
@@ -1049,9 +1049,8 @@
cpy = sizeof (GNUNET_MessageHeader) - httpSession->cs.client.rpos1;
if (cpy > have)
cpy = have;
- memcpy (&httpSession->cs.
- client.rbuff1[httpSession->cs.client.rpos1], &inbuf[poff],
- cpy);
+ memcpy (&httpSession->cs.client.
+ rbuff1[httpSession->cs.client.rpos1], &inbuf[poff], cpy);
httpSession->cs.client.rpos1 += cpy;
have -= cpy;
poff += cpy;
@@ -1071,9 +1070,8 @@
httpSession->cs.client.rpos2;
if (cpy > have)
cpy = have;
- memcpy (&httpSession->cs.
- client.rbuff2[httpSession->cs.client.rpos2], &inbuf[poff],
- cpy);
+ memcpy (&httpSession->cs.client.
+ rbuff2[httpSession->cs.client.rpos2], &inbuf[poff], cpy);
have -= cpy;
poff += cpy;
httpSession->cs.client.rpos2 += cpy;
Modified: GNUnet/src/util/network/dns.c
===================================================================
--- GNUnet/src/util/network/dns.c 2008-06-02 02:51:16 UTC (rev 6992)
+++ GNUnet/src/util/network/dns.c 2008-06-02 02:52:58 UTC (rev 6993)
@@ -442,10 +442,12 @@
if (0 != (s = getaddrinfo (hostname, NULL, &hints, &result)))
{
GNUNET_GE_LOG (ectx,
- GNUNET_GE_WARNING| GNUNET_GE_USER |
+ GNUNET_GE_WARNING | GNUNET_GE_USER |
GNUNET_GE_BULK,
_("Could not resolve `%s' (%s): %s\n"), hostname,
- (domain == AF_INET) ? "IPv4" : ((domain == AF_INET6) ?
"IPv6" : "any"),
+ (domain ==
+ AF_INET) ? "IPv4" : ((domain ==
+ AF_INET6) ? "IPv6" : "any"),
gai_strerror (s));
return GNUNET_SYSERR;
}
Modified: GNUnet/src/util/network_client/tcpio.c
===================================================================
--- GNUnet/src/util/network_client/tcpio.c 2008-06-02 02:51:16 UTC (rev
6992)
+++ GNUnet/src/util/network_client/tcpio.c 2008-06-02 02:52:58 UTC (rev
6993)
@@ -270,21 +270,21 @@
while (1)
{
if (af_index == -1)
- {
- tries = 10;
- af_index = 0;
- }
+ {
+ tries = 10;
+ af_index = 0;
+ }
else
- {
- /* wait for 500ms before trying again */
- GNUNET_thread_sleep(GNUNET_CRON_MILLISECONDS * 500);
- tries--;
- }
+ {
+ /* wait for 500ms before trying again */
+ GNUNET_thread_sleep (GNUNET_CRON_MILLISECONDS * 500);
+ tries--;
+ }
if (tries == 0)
- {
- af_index++;
- tries = 10;
- }
+ {
+ af_index++;
+ tries = 10;
+ }
if (addr_families[af_index] == -1)
return GNUNET_SYSERR;
soaddr = NULL;
@@ -394,22 +394,21 @@
ret = GETSOCKOPT (osock, SOL_SOCKET, SO_ERROR, &soerr, &soerrlen);
if (ret != 0)
- GNUNET_GE_LOG_STRERROR (sock->ectx,
- GNUNET_GE_WARNING | GNUNET_GE_USER |
- GNUNET_GE_BULK, "getsockopt");
-
- if ((soerr != 0) ||
- (ret != 0 && (errno == ENOTSOCK || errno == EBADF)))
- {
- GNUNET_GE_LOG (sock->ectx,
- GNUNET_GE_DEBUG | GNUNET_GE_USER |
- GNUNET_GE_BULK,
- _("Failed to connect to %s:%u\n"), host, port);
- GNUNET_socket_destroy (sock->sock);
- sock->sock = NULL;
- GNUNET_mutex_unlock (sock->destroylock);
- continue;
- }
+ GNUNET_GE_LOG_STRERROR (sock->ectx,
+ GNUNET_GE_WARNING | GNUNET_GE_USER |
+ GNUNET_GE_BULK, "getsockopt");
+
+ if ((soerr != 0) || (ret != 0 && (errno == ENOTSOCK || errno == EBADF)))
+ {
+ GNUNET_GE_LOG (sock->ectx,
+ GNUNET_GE_DEBUG | GNUNET_GE_USER |
+ GNUNET_GE_BULK,
+ _("Failed to connect to %s:%u\n"), host, port);
+ GNUNET_socket_destroy (sock->sock);
+ sock->sock = NULL;
+ GNUNET_mutex_unlock (sock->destroylock);
+ continue;
+ }
break;
}
GNUNET_free (host);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r6993 - in GNUnet: libltdl src/applications/datastore src/applications/dht/tools src/applications/fs/collection src/applications/fs/ecrs src/applications/fs/tools src/applications/sqstore_mysql src/applications/testing src/include src/server src/setup/lib src/setup/ncurses src/transports src/util/network src/util/network_client,
gnunet <=