From 8384033b4d63e8dff136dc67e9b207401a49246d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 26 Jan 2011 08:52:37 +0000 Subject: [PATCH] indenting --- src/include/gnunet_common.h | 6 ++++++ src/transport/gnunet-service-transport.c | 6 ++++-- src/transport/plugin_transport_tcp.c | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index dddee068a..73945a809 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -147,6 +147,7 @@ enum GNUNET_ErrorType GNUNET_ERROR_TYPE_BULK = 32 }; + /** * User-defined handler for log messages. * @@ -208,6 +209,7 @@ int GNUNET_log_setup (const char *comp, const char *loglevel, const char *logfile); + /** * Add a custom logger. * @@ -216,6 +218,7 @@ GNUNET_log_setup (const char *comp, */ void GNUNET_logger_add (GNUNET_Logger logger, void *logger_cls); + /** * Remove a custom logger. * @@ -235,6 +238,7 @@ void GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls); */ 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 (const GNUNET_HashCode *hc); */ 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_a2s (const struct sockaddr *addr, */ const char *GNUNET_error_type_to_string (enum GNUNET_ErrorType kind); + /** * Use this for fatal errors that cannot be handled */ diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 0d54d509e..de61b2199 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -1034,7 +1034,7 @@ read_blacklist_file (const struct GNUNET_CONFIGURATION_Handle *cfg) { #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 @@ read_blacklist_file (const struct GNUNET_CONFIGURATION_Handle *cfg) 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 @@ transmit_to_client_callback (void *cls, size_t size, void *buf) 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)) { diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 6110af96a..fb65e1eb2 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -2350,6 +2350,7 @@ tcp_plugin_server_read (void *cls, "Finished reading from server stdout with code: %d\n", bytes); #endif + /* FIXME: consider process_wait here? */ return; } -- 2.25.1