gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33234 - in gnunet/src: ats core dht


From: gnunet
Subject: [GNUnet-SVN] r33234 - in gnunet/src: ats core dht
Date: Sun, 11 May 2014 12:51:01 +0200

Author: canndrew
Date: 2014-05-11 12:51:01 +0200 (Sun, 11 May 2014)
New Revision: 33234

Modified:
   gnunet/src/ats/gnunet-service-ats_normalization.c
   gnunet/src/core/gnunet-service-core_sessions.c
   gnunet/src/dht/gnunet-service-xdht_neighbours.c
Log:
Minor bigfixes.

Modified: gnunet/src/ats/gnunet-service-ats_normalization.c
===================================================================
--- gnunet/src/ats/gnunet-service-ats_normalization.c   2014-05-11 02:54:29 UTC 
(rev 33233)
+++ gnunet/src/ats/gnunet-service-ats_normalization.c   2014-05-11 10:51:01 UTC 
(rev 33234)
@@ -256,12 +256,11 @@
       /* No client had any preferences for this type and any peer */
       rp->f_rel[kind] = DEFAULT_REL_PREFERENCE;
     }
+    if ((backup != rp->f_rel[kind]) && (NULL != pref_changed_cb))
+    {
+      pref_changed_cb (pref_changed_cb_cls, &rp->id, kind, rp->f_rel[kind]);
+    }
   }
-
-  if ((backup != rp->f_rel[kind]) && (NULL != pref_changed_cb))
-  {
-    pref_changed_cb (pref_changed_cb_cls, &rp->id, kind, rp->f_rel[kind]);
-  }
 }
 
 /**

Modified: gnunet/src/core/gnunet-service-core_sessions.c
===================================================================
--- gnunet/src/core/gnunet-service-core_sessions.c      2014-05-11 02:54:29 UTC 
(rev 33233)
+++ gnunet/src/core/gnunet-service-core_sessions.c      2014-05-11 10:51:01 UTC 
(rev 33234)
@@ -678,6 +678,7 @@
   {
     /* never solicit more, we have critical messages to process */
     excess = GNUNET_NO;
+    maxpc = GNUNET_CORE_PRIO_BACKGROUND;
   }
   now = GNUNET_TIME_absolute_get ();
   if ( ( (GNUNET_YES == excess) ||

Modified: gnunet/src/dht/gnunet-service-xdht_neighbours.c
===================================================================
--- gnunet/src/dht/gnunet-service-xdht_neighbours.c     2014-05-11 02:54:29 UTC 
(rev 33233)
+++ gnunet/src/dht/gnunet-service-xdht_neighbours.c     2014-05-11 10:51:01 UTC 
(rev 33234)
@@ -2468,7 +2468,7 @@
     struct GNUNET_PeerIdentity curr_src;
     memcpy (&curr_dest, &current_destination, sizeof (struct 
GNUNET_PeerIdentity));
     memcpy (&curr_src, &current_source, sizeof (struct GNUNET_PeerIdentity));
-    memcpy (&key_value, key, sizeof (struct GNUNET_PeerIdentity));
+    memcpy (&key_value, key, sizeof (uint64_t));
     next_hop = find_successor (key_value, &curr_dest, &curr_src, NULL);
     /* FIXME: Again I am copying back value of current_destination, 
current_source,
      Think of a better solution. */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]