(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 31 May 2011 14:54:49 +0000 (14:54 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 31 May 2011 14:54:49 +0000 (14:54 +0000)
src/transport/gnunet-service-transport.c

index 7c4b3488a1a64d02c6eaf9254a536771266587c7..f120c6e19196812948b248d77556f2f4a48e8c9f 100644 (file)
@@ -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