From 6b8f1672f57fb94af20aecaf406861d48fd90ba3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 3 Apr 2011 12:17:01 +0000 Subject: [PATCH] compile --- src/transport/gnunet-service-transport.c | 2 +- src/transport/plugin_transport_wlan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index b2113776b..f8bff6861 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -5660,7 +5660,7 @@ static int ats_solve_problem (int max_it, int max_dur , double D, double U, doub int result; int solution; - int c_c_ressources = 0; + //int c_c_ressources = 0; int c_q_metrics = 0; //double M = 10000000000; // ~10 GB diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index aaf5cb588..9613121c8 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -1217,7 +1217,7 @@ check_finished_fragment(struct Plugin * plugin, struct FragmentMessage * fm) //maxack = size of message / max packet size, eg 12 / 5 = 2 start at 0 so ack numbers are 0,1,2 unsigned int maxack = 63 - ((fm->message_size - 1) / (WLAN_MTU - sizeof(struct FragmentationHeader))); - uint64_t tmpfield = 0xFFFFFFFFFFFFFFFF; + uint64_t tmpfield = UINT64_MAX; tmpfield = tmpfield >> maxack; //#if DEBUG_wlan -- 2.25.1