From 09b95542dc26c7e85bef9553f704c22110366e83 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 27 May 2011 11:10:22 +0000 Subject: [PATCH] fixing codesonar bugs --- src/transport/gnunet-service-transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 6c4c10b6a..7c4b3488a 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -6139,7 +6139,6 @@ static int ats_evaluate_results (int result, int solution, char * problem) case GLP_EITLIM : /* iteration limit exceeded */ GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "%s Iteration limit exceeded\n", problem); break; - break; case GLP_ETMLIM : /* time limit exceeded */ GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "%s Time limit exceeded\n", problem); break; @@ -6216,7 +6215,7 @@ static void ats_solve_problem (unsigned int max_it, unsigned int max_dur, unsig result = glp_simplex(ats->prob, &opt_lp); lp_solution = glp_get_status (ats->prob); - if ((result == GLP_ETMLIM) || (result == GLP_ETMLIM)) + if ((result == GLP_ETMLIM) || (result == GLP_EITLIM)) { ats->stat.valid = GNUNET_NO; GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "ATS exceeded time or iteration limit!\n"); -- 2.25.1