aboutsummaryrefslogtreecommitdiff
path: root/src/hello
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-07 11:49:37 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-07 11:49:37 +0000
commit1617fd1db3329d1b8c2db59f6fd8cd04f955a31f (patch)
tree8d88db606a606b6fc9135104f8f6096ea0ad856f /src/hello
parent724bfacf4c03ed0fdd290ae800eae030031db5b6 (diff)
-simplify
Diffstat (limited to 'src/hello')
-rw-r--r--src/hello/address.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hello/address.c b/src/hello/address.c
index 2d3a591218..9ca1641a5b 100644
--- a/src/hello/address.c
+++ b/src/hello/address.c
@@ -143,7 +143,7 @@ GNUNET_HELLO_address_cmp (const struct GNUNET_HELLO_Address *a1,
if (0 != ret)
return ret;
if (a1->local_info != a2->local_info)
- return (((int) a1->local_info) - ((int) a2->local_info) < 0) -1 : 1;
+ return (((int) a1->local_info) < ((int) a2->local_info)) -1 : 1;
if (a1->address_length < a2->address_length)
return -1;
if (a1->address_length > a2->address_length)