[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14267 - in gnunet/src: include transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14267 - in gnunet/src: include transport |
Date: |
Wed, 26 Jan 2011 09:52:37 +0100 |
Author: grothoff
Date: 2011-01-26 09:52:37 +0100 (Wed, 26 Jan 2011)
New Revision: 14267
Modified:
gnunet/src/include/gnunet_common.h
gnunet/src/transport/gnunet-service-transport.c
gnunet/src/transport/plugin_transport_tcp.c
Log:
indenting
Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h 2011-01-26 08:37:06 UTC (rev 14266)
+++ gnunet/src/include/gnunet_common.h 2011-01-26 08:52:37 UTC (rev 14267)
@@ -147,6 +147,7 @@
GNUNET_ERROR_TYPE_BULK = 32
};
+
/**
* User-defined handler for log messages.
*
@@ -208,6 +209,7 @@
GNUNET_log_setup (const char *comp,
const char *loglevel, const char *logfile);
+
/**
* Add a custom logger.
*
@@ -216,6 +218,7 @@
*/
void GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls);
+
/**
* Remove a custom logger.
*
@@ -235,6 +238,7 @@
*/
const char *GNUNET_h2s (const GNUNET_HashCode *hc);
+
/**
* Convert a hash value to a string (for printing debug messages).
* This prints all 104 characters of a hashcode!
@@ -246,6 +250,7 @@
*/
const char *GNUNET_h2s_full (const GNUNET_HashCode *hc);
+
/**
* Convert a peer identity to a string (for printing debug messages).
* This is one of the very few calls in the entire API that is
@@ -279,6 +284,7 @@
*/
const char *GNUNET_error_type_to_string (enum GNUNET_ErrorType kind);
+
/**
* Use this for fatal errors that cannot be handled
*/
Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c 2011-01-26 08:37:06 UTC
(rev 14266)
+++ gnunet/src/transport/gnunet-service-transport.c 2011-01-26 08:52:37 UTC
(rev 14267)
@@ -1034,7 +1034,7 @@
{
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- _("Option `%s' in section `%s' not specified!\n"),
+ "Option `%s' in section `%s' not specified!\n",
"BLACKLIST_FILE",
"TRANSPORT");
#endif
@@ -1122,7 +1122,7 @@
pos = colon_pos + 1;
#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- _("Read transport name %s in blacklist file.\n"),
+ "Read transport name %s in blacklist file.\n",
transport_name);
#endif
memcpy (&enc, &data[pos], sizeof (struct
GNUNET_CRYPTO_HashAsciiEncoded));
@@ -1196,8 +1196,10 @@
client->th = NULL;
if (buf == NULL)
{
+#if DEBUG_TRANSPORT
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Transmission to client failed, closing connection.\n");
+#endif
/* fatal error with client, free message queue! */
while (NULL != (q = client->message_queue_head))
{
Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2011-01-26 08:37:06 UTC (rev
14266)
+++ gnunet/src/transport/plugin_transport_tcp.c 2011-01-26 08:52:37 UTC (rev
14267)
@@ -2350,6 +2350,7 @@
"Finished reading from server stdout with code: %d\n",
bytes);
#endif
+ /* FIXME: consider process_wait here? */
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14267 - in gnunet/src: include transport,
gnunet <=