aboutsummaryrefslogtreecommitdiff
path: root/src/hello/address.c
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/address.c
parent724bfacf4c03ed0fdd290ae800eae030031db5b6 (diff)
downloadgnunet-1617fd1db3329d1b8c2db59f6fd8cd04f955a31f.tar.gz
gnunet-1617fd1db3329d1b8c2db59f6fd8cd04f955a31f.zip
-simplify
Diffstat (limited to 'src/hello/address.c')
-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 2d3a59121..9ca1641a5 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,
143 if (0 != ret) 143 if (0 != ret)
144 return ret; 144 return ret;
145 if (a1->local_info != a2->local_info) 145 if (a1->local_info != a2->local_info)
146 return (((int) a1->local_info) - ((int) a2->local_info) < 0) -1 : 1; 146 return (((int) a1->local_info) < ((int) a2->local_info)) -1 : 1;
147 if (a1->address_length < a2->address_length) 147 if (a1->address_length < a2->address_length)
148 return -1; 148 return -1;
149 if (a1->address_length > a2->address_length) 149 if (a1->address_length > a2->address_length)