diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-21 09:06:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-21 09:06:13 +0000 |
commit | 030234510181f14610c65df747036045e70720e1 (patch) | |
tree | 5afe6c5eaf4155620ffce90a4313d7ee0a90892a /src/hello | |
parent | 73fb0146652b3ee6a346779e58a44849fcc2cea9 (diff) | |
download | gnunet-030234510181f14610c65df747036045e70720e1.tar.gz gnunet-030234510181f14610c65df747036045e70720e1.zip |
-include local_info in hello cmp
Diffstat (limited to 'src/hello')
-rw-r--r-- | src/hello/address.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hello/address.c b/src/hello/address.c index 0583b273e..83bb2af99 100644 --- a/src/hello/address.c +++ b/src/hello/address.c | |||
@@ -142,6 +142,8 @@ GNUNET_HELLO_address_cmp (const struct GNUNET_HELLO_Address *a1, | |||
142 | ret = strcmp (a1->transport_name, a2->transport_name); | 142 | ret = strcmp (a1->transport_name, a2->transport_name); |
143 | if (0 != ret) | 143 | if (0 != ret) |
144 | return ret; | 144 | return ret; |
145 | if (a1->local_info != a2->local_info) | ||
146 | return ((int) a1->local_info) - ((int) a2->local_info); | ||
145 | if (a1->address_length < a2->address_length) | 147 | if (a1->address_length < a2->address_length) |
146 | return -1; | 148 | return -1; |
147 | if (a1->address_length > a2->address_length) | 149 | if (a1->address_length > a2->address_length) |