aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-11 22:33:24 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-11 22:33:24 +0000
commit464d2cbfa3c56bd11c78667fc6e2f0a960f02f92 (patch)
tree0d5ffb0a36890fc58bf1b53b4ef872c8f5f68279 /src/peerinfo
parent4094407e04c6cfc3b944301467f1249cdc59954c (diff)
downloadgnunet-464d2cbfa3c56bd11c78667fc6e2f0a960f02f92.tar.gz
gnunet-464d2cbfa3c56bd11c78667fc6e2f0a960f02f92.zip
minor fixes
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-service-peerinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerinfo/gnunet-service-peerinfo.c b/src/peerinfo/gnunet-service-peerinfo.c
index e8ac5ef4a..7c1f53d4b 100644
--- a/src/peerinfo/gnunet-service-peerinfo.c
+++ b/src/peerinfo/gnunet-service-peerinfo.c
@@ -329,8 +329,8 @@ change_host_trust (const struct GNUNET_PeerIdentity *hostId, int value)
329 { 329 {
330 if (host->trust + value < host->trust) 330 if (host->trust + value < host->trust)
331 { 331 {
332 value = ((uint32_t) - 1) - host->trust; 332 value = UINT32_MAX - host->trust;
333 host->trust = (uint32_t) - 1; /* maximized */ 333 host->trust = UINT32_MAX;
334 } 334 }
335 else 335 else
336 host->trust += value; 336 host->trust += value;