aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-06 14:52:12 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-06 14:52:12 +0000
commit34aad61f423d2f6078ecfe51cb7a650fe528ab96 (patch)
treeeb9cb60dfec80175d3102afc52e671622fc723f4
parente8cf81fdb3fdaef59b49da8f6e952a3225ab326e (diff)
fix ftbfs
-rw-r--r--src/jsonapi/Makefile.am1
-rw-r--r--src/util/test_common_logging_runtime_loglevels.c22
2 files changed, 15 insertions, 8 deletions
diff --git a/src/jsonapi/Makefile.am b/src/jsonapi/Makefile.am
index 22ae7dac51..f190d3e093 100644
--- a/src/jsonapi/Makefile.am
+++ b/src/jsonapi/Makefile.am
@@ -45,5 +45,6 @@ test_jsonapi_SOURCES = \
test_jsonapi.c
test_jsonapi_LDADD = \
libgnunetjsonapi.la \
+ $(top_builddir)/src/json/libgnunetjson.la \
$(top_builddir)/src/util/libgnunetutil.la \
-ljansson
diff --git a/src/util/test_common_logging_runtime_loglevels.c b/src/util/test_common_logging_runtime_loglevels.c
index 033b16ce1f..c633d7de89 100644
--- a/src/util/test_common_logging_runtime_loglevels.c
+++ b/src/util/test_common_logging_runtime_loglevels.c
@@ -179,16 +179,22 @@ read_output_line (int phase_from1, int phase_to1, int phase_from2,
if (delay_is_a_dummy)
delay_outside_of_range = 1;
- if (!stop)
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Wrong log format?\n");
- if (!level_matches)
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Wrong log level\n");
- if (!delay_is_sane)
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Delay %ld is insane\n", *delay);
- if (!delay_outside_of_range)
+ if (! stop)
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Wrong log format?\n");
+ if (! level_matches)
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Wrong log level\n");
+ if (! delay_is_sane)
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Delay %ld is insane\n",
+ *delay);
+ if (! delay_outside_of_range)
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Delay %ld is not outside of range (%ld ; %ld)\n",
- *delay, delay_lessthan, delay_morethan, c);
+ *delay,
+ delay_lessthan,
+ delay_morethan);
if (!stop || !level_matches || !delay_is_sane || !delay_outside_of_range)
return NULL;
*len = *len - i;