-LRN: misc. minor fixes
authorChristian Grothoff <christian@grothoff.org>
Thu, 8 Dec 2011 17:48:54 +0000 (17:48 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 8 Dec 2011 17:48:54 +0000 (17:48 +0000)
src/testing/Makefile.am
src/util/service.c

index 55f8e9ad96a2570e5135d80ec97f50f16d9ebff0..96c527de43377bc043a09514695bfced5ef08226 100644 (file)
@@ -94,8 +94,8 @@ gnunet_testing_LDADD = \
  $(top_builddir)/src/testing/libgnunettesting.la \
  $(top_builddir)/src/util/libgnunetutil.la \
  $(GN_LIBINTL)
-#gnunet_testing_DEPENDENCIES =
-#  libgnunetttesting.la                                
+gnunet_testing_DEPENDENCIES = \
+ libgnunettesting.la
 
 
 test_testing_SOURCES = \
index d37fe87c21ecae4d5ee96f59d8b3e5aec114efbc..d582b6d80b92d43699b3e8a291e3a2d7ff136ed3 100644 (file)
@@ -1150,7 +1150,7 @@ receive_sockets_from_parent (struct GNUNET_SERVICE_Context *sctx)
   {
     LOG (GNUNET_ERROR_TYPE_ERROR,
          _("Could not access a pre-bound socket, will try to bind myself\n"));
-    for (i = 0; sctx->lsocks[i] != NULL && i < count; i++)
+    for (i = 0; i < count && sctx->lsocks[i] != NULL; i++)
       GNUNET_break (0 == GNUNET_NETWORK_socket_close (sctx->lsocks[i]));
     GNUNET_free (sctx->lsocks);
     sctx->lsocks = NULL;