aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-25 23:22:33 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-25 23:22:33 +0000
commit124f3e77a5e022f5f7ab49df49023d0080bcbbb4 (patch)
tree2c88e59709c52594d2c98c6df52671419c957162 /src/fs/gnunet-service-fs_cp.c
parent8306257cfea6b5ca5d7cd0119b8d1369f422a07f (diff)
downloadgnunet-124f3e77a5e022f5f7ab49df49023d0080bcbbb4.tar.gz
gnunet-124f3e77a5e022f5f7ab49df49023d0080bcbbb4.zip
-reduce calls in get_latest()
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r--src/fs/gnunet-service-fs_cp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index 8fb2d2a3a..7066b0698 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -1160,11 +1160,12 @@ bound_priority (uint32_t prio_in, struct GSF_ConnectedPeer *cp)
1160 * 1160 *
1161 * @param ttl_in requested ttl 1161 * @param ttl_in requested ttl
1162 * @param prio given priority 1162 * @param prio given priority
1163 * @return ttl_in if ttl_in is below the limit, 1163 * @return @a ttl_in if @a ttl_in is below the limit,
1164 * otherwise the ttl-limit for the given priority 1164 * otherwise the ttl-limit for the given @a prio
1165 */ 1165 */
1166static int32_t 1166static int32_t
1167bound_ttl (int32_t ttl_in, uint32_t prio) 1167bound_ttl (int32_t ttl_in,
1168 uint32_t prio)
1168{ 1169{
1169 unsigned long long allowed; 1170 unsigned long long allowed;
1170 1171
@@ -1257,7 +1258,6 @@ test_exist_cb (void *cls,
1257} 1258}
1258 1259
1259 1260
1260
1261/** 1261/**
1262 * Handle P2P "QUERY" message. Creates the pending request entry 1262 * Handle P2P "QUERY" message. Creates the pending request entry
1263 * and sets up all of the data structures to that we will 1263 * and sets up all of the data structures to that we will