From 9b68602172984414812bd244c06e3786716a7471 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 20 Oct 2011 13:17:40 +0000 Subject: fix use of ok --- src/core/test_core_quota_compliance.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index 1092d5e48..51ed48916 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c @@ -245,9 +245,9 @@ measurement_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) if ((throughput_out > (max_quota_out + quota_delta)) || (throughput_in > (max_quota_in + quota_delta))) - ok = GNUNET_NO; + ok = 1; else - ok = GNUNET_YES; + ok = 0; GNUNET_STATISTICS_get (p1.stats, "core", "# discarded CORE_SEND requests", GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p1); @@ -273,23 +273,23 @@ measurement_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) "# discarded lower priority CORE_SEND request bytes", GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p2); - if (ok == GNUNET_NO) + if (ok != 0) kind = GNUNET_ERROR_TYPE_ERROR; switch (test) { case SYMMETRIC: GNUNET_log (kind, "Core quota compliance test with symmetric quotas: %s\n", - (ok == GNUNET_YES) ? "PASSED" : "FAILED"); + (ok != 0) ? "PASSED" : "FAILED"); break; case ASYMMETRIC_SEND_LIMITED: GNUNET_log (kind, "Core quota compliance test with limited sender quota: %s\n", - (ok == GNUNET_YES) ? "PASSED" : "FAILED"); + (ok != 0) ? "PASSED" : "FAILED"); break; case ASYMMETRIC_RECV_LIMITED: GNUNET_log (kind, "Core quota compliance test with limited receiver quota: %s\n", - (ok == GNUNET_YES) ? "PASSED" : "FAILED"); + (ok != 0) ? "PASSED" : "FAILED"); break; }; GNUNET_log (kind, "Peer 1 send rate: %llu b/s (%llu bytes in %llu ms)\n", -- cgit v1.2.3