warn if this happens
authorChristian Grothoff <christian@grothoff.org>
Wed, 25 May 2011 10:19:31 +0000 (10:19 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 25 May 2011 10:19:31 +0000 (10:19 +0000)
src/util/client.c
src/util/connection.c
src/util/service.c

index 3c31aaaa8f1461c4939a6b9bf8d9b549a535010d..e131d1ae986c855a78367353d3a90f71ab1b2f7e 100644 (file)
@@ -891,7 +891,10 @@ GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock,
   struct GNUNET_CLIENT_TransmitHandle *th;
 
   if (NULL != sock->th)
-    return NULL;
+    {
+      GNUNET_break (0);
+      return NULL;
+    }
   th = GNUNET_malloc (sizeof (struct GNUNET_CLIENT_TransmitHandle));
   th->sock = sock;
   th->size = size;
index 7828dac531264dba3bbba6e26806f562654d29ee..9769c3cba08b4852fc8046d61f101ffd55207ab5 100644 (file)
@@ -1630,7 +1630,10 @@ GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle
                                          notify, void *notify_cls)
 {
   if (sock->nth.notify_ready != NULL)
-    return NULL;
+    {
+      GNUNET_break (0);
+      return NULL;
+    }
   GNUNET_assert (notify != NULL);
   GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE);
   GNUNET_assert (sock->write_buffer_off <= sock->write_buffer_size);
index 2338e795dc0c2710b774616ddf34623181982234..e88ac77c8d4d9773e9d9ecde859bb968e883e7c7 100644 (file)
@@ -909,7 +909,9 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
       if (strlen(unixpath) >= sizeof(s_un.sun_path))
        {
          GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                     _("UNIXPATH `%s' too long, maximum length is %llu\n"),unixpath, sizeof(s_un.sun_path));
+                     _("UNIXPATH `%s' too long, maximum length is %llu\n"),
+                     unixpath, 
+                     sizeof(s_un.sun_path));
          GNUNET_free_non_null (hostname);
          GNUNET_free (unixpath);
          return GNUNET_SYSERR;