indenting
authorChristian Grothoff <christian@grothoff.org>
Wed, 26 Jan 2011 08:52:37 +0000 (08:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 26 Jan 2011 08:52:37 +0000 (08:52 +0000)
src/include/gnunet_common.h
src/transport/gnunet-service-transport.c
src/transport/plugin_transport_tcp.c

index dddee068af0b8c1d036c8d2da9a749d3d480ee5f..73945a809b1a9c30569ffa1e6915ff67dc1831ca 100644 (file)
@@ -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
  */
index 0d54d509ea9c88b5a08c1a06035d48d369d93ead..de61b2199aff7cb96fc9d27eee183f6a0bbbc4d6 100644 (file)
@@ -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))
         {
index 6110af96af93b1d94ac594cb5e8a5ce275e65189..fb65e1eb21040b2a6fea9968085ad2c38d8304ae 100644 (file)
@@ -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;
     }