From 3d56d2b36ab23858e0d6a21271e96ea41538ec2f Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 10 Jun 2011 10:53:21 +0000 Subject: --- src/transport/perf_transport_ats.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/transport/perf_transport_ats.c b/src/transport/perf_transport_ats.c index eaec70c7b..680e38f3d 100644 --- a/src/transport/perf_transport_ats.c +++ b/src/transport/perf_transport_ats.c @@ -50,21 +50,13 @@ static struct GNUNET_TIME_Absolute end; void solve_mlp(int presolve) { - int result, solution; - - glp_iocp opt_mlp; - glp_init_iocp(&opt_mlp); - opt_mlp.msg_lev = GLP_MSG_OFF; - opt_mlp.presolve = GLP_OFF; - - result = glp_intopt (prob, &opt_mlp); - solution = glp_mip_status (prob); - GNUNET_assert ((solution == 5) && (result==0)); +make } void solve_lp(int presolve) { - int result, solution; + int result; + int solution; glp_smcp opt_lp; glp_init_smcp(&opt_lp); @@ -97,7 +89,6 @@ void modify_qm(int start, int length, int values_to_change) { printf("%i = %f \n", ind[c2], val[c2]); } - c++; } //glp_set_mat_row(prob, start, length, ind, val); @@ -249,14 +240,11 @@ int main (int argc, char *argv[]) GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "GLPK not installed, exiting testcase\n"); return 0; #else -#if 0 -#endif + int nullfd = OPEN ("/dev/null", O_RDWR | O_APPEND); if (nullfd < 0) return GNUNET_SYSERR; - /* set stdin/stdout to /dev/null */ - //stdi - if (/*(dup2 (nullfd, 0) < 0) || */(dup2 (nullfd, 1) < 0)) + if (dup2 (nullfd, 1) < 0) { GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, "dup2"); (void) CLOSE (nullfd); -- cgit v1.2.3