clarify why we get these warnings
authorChristian Grothoff <christian@grothoff.org>
Fri, 10 Sep 2010 09:42:48 +0000 (09:42 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 10 Sep 2010 09:42:48 +0000 (09:42 +0000)
src/util/server.c

index 242feba43b8521a546751f8c038c37fb16d8ccef..516885fedfc3da2e87348837d6412262650728e7 100644 (file)
@@ -617,12 +617,14 @@ GNUNET_SERVER_inject (struct GNUNET_SERVER_Handle *server,
             {
               if ((mh->expected_size != 0) && (mh->expected_size != size))
                 {
+#if GNUNET8_NETWORK_IS_DEAD
                  GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
                              "Expected %u bytes for message of type %u, got %u\n",
                              mh->expected_size,
                              mh->type,
                              size);
                   GNUNET_break_op (0);
+#endif
                   return GNUNET_SYSERR;
                 }
               if (sender != NULL)