diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-22 21:59:27 +0000 |
commit | f44c0036572d5557d2496748a4190a61e40e61ff (patch) | |
tree | bceb908e8542883ed246f96b4c619c0c49a06782 /src/topology | |
parent | 9d87d51965287d83ee332b8c50baff95bd62649a (diff) | |
download | gnunet-f44c0036572d5557d2496748a4190a61e40e61ff.tar.gz gnunet-f44c0036572d5557d2496748a4190a61e40e61ff.zip |
replacing 0-terminated atsi-array with array+length in core API (and the core-connect IPC)
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 453c9d924..625923cdf 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -632,10 +632,12 @@ reschedule_hellos (void *cls, const GNUNET_HashCode * pid, void *value) | |||
632 | * @param cls closure | 632 | * @param cls closure |
633 | * @param peer peer identity this notification is about | 633 | * @param peer peer identity this notification is about |
634 | * @param atsi performance data | 634 | * @param atsi performance data |
635 | * @param atsi_count number of records in 'atsi' | ||
635 | */ | 636 | */ |
636 | static void | 637 | static void |
637 | connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, | 638 | connect_notify (void *cls, const struct GNUNET_PeerIdentity *peer, |
638 | const struct GNUNET_ATS_Information *atsi) | 639 | const struct GNUNET_ATS_Information *atsi, |
640 | unsigned int atsi_count) | ||
639 | { | 641 | { |
640 | struct Peer *pos; | 642 | struct Peer *pos; |
641 | 643 | ||
@@ -1100,13 +1102,15 @@ read_friends_file (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
1100 | * for loopback messages where we are both sender and receiver) | 1102 | * for loopback messages where we are both sender and receiver) |
1101 | * @param message the actual HELLO message | 1103 | * @param message the actual HELLO message |
1102 | * @param atsi performance data | 1104 | * @param atsi performance data |
1105 | * @param atsi_count number of records in 'atsi' | ||
1103 | * @return GNUNET_OK to keep the connection open, | 1106 | * @return GNUNET_OK to keep the connection open, |
1104 | * GNUNET_SYSERR to close it (signal serious error) | 1107 | * GNUNET_SYSERR to close it (signal serious error) |
1105 | */ | 1108 | */ |
1106 | static int | 1109 | static int |
1107 | handle_encrypted_hello (void *cls, const struct GNUNET_PeerIdentity *other, | 1110 | handle_encrypted_hello (void *cls, const struct GNUNET_PeerIdentity *other, |
1108 | const struct GNUNET_MessageHeader *message, | 1111 | const struct GNUNET_MessageHeader *message, |
1109 | const struct GNUNET_ATS_Information *atsi) | 1112 | const struct GNUNET_ATS_Information *atsi, |
1113 | unsigned int atsi_count) | ||
1110 | { | 1114 | { |
1111 | struct Peer *peer; | 1115 | struct Peer *peer; |
1112 | struct GNUNET_PeerIdentity pid; | 1116 | struct GNUNET_PeerIdentity pid; |