From: Matthias Wachs Date: Tue, 31 May 2011 14:54:49 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~18371 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7131d326db99ed34b52cdb1e665f6f7994c877d2;p=oweals%2Fgnunet.git --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 7c4b3488a..f120c6e19 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -6133,6 +6133,9 @@ static int ats_evaluate_results (int result, int solution, char * problem) #endif switch (result) { + case GNUNET_SYSERR : /* GNUNET problem, not GLPK related */ + GNUNET_log (error_kind, "%s , GLPK solving not executed\n", problem); + break; case GLP_ESTOP : /* search terminated by application */ GNUNET_log (error_kind, "%s , Search terminated by application\n", problem); break; @@ -6191,12 +6194,11 @@ return cont; static void ats_solve_problem (unsigned int max_it, unsigned int max_dur, unsigned int c_peers, unsigned int c_mechs, struct ATS_stat *stat) { - int result; - int lp_solution; - int mlp_solution; + int result = GNUNET_SYSERR; + int lp_solution = GNUNET_SYSERR; + int mlp_solution = GNUNET_SYSERR; // Solving simplex - glp_smcp opt_lp; glp_init_smcp(&opt_lp); #if VERBOSE_ATS