diff options
Diffstat (limited to 'src/transport/transport_api_core.c')
-rw-r--r-- | src/transport/transport_api_core.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/transport/transport_api_core.c b/src/transport/transport_api_core.c index b7edc3cc1..2e897d94a 100644 --- a/src/transport/transport_api_core.c +++ b/src/transport/transport_api_core.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
@@ -136,17 +136,17 @@ struct GNUNET_TRANSPORT_CoreHandle | |||
136 | /** | 136 | /** |
137 | * function to call on connect events | 137 | * function to call on connect events |
138 | */ | 138 | */ |
139 | GNUNET_TRANSPORT_NotifyConnecT nc_cb; | 139 | GNUNET_TRANSPORT_NotifyConnect nc_cb; |
140 | 140 | ||
141 | /** | 141 | /** |
142 | * function to call on disconnect events | 142 | * function to call on disconnect events |
143 | */ | 143 | */ |
144 | GNUNET_TRANSPORT_NotifyDisconnecT nd_cb; | 144 | GNUNET_TRANSPORT_NotifyDisconnect nd_cb; |
145 | 145 | ||
146 | /** | 146 | /** |
147 | * function to call on excess bandwidth events | 147 | * function to call on excess bandwidth events |
148 | */ | 148 | */ |
149 | GNUNET_TRANSPORT_NotifyExcessBandwidtH neb_cb; | 149 | GNUNET_TRANSPORT_NotifyExcessBandwidth neb_cb; |
150 | 150 | ||
151 | /** | 151 | /** |
152 | * My client connection to the transport service. | 152 | * My client connection to the transport service. |
@@ -551,7 +551,8 @@ handle_connect (void *cls, | |||
551 | "Receiving CONNECT message for `%s' with quota %u\n", | 551 | "Receiving CONNECT message for `%s' with quota %u\n", |
552 | GNUNET_i2s (&cim->id), | 552 | GNUNET_i2s (&cim->id), |
553 | ntohl (cim->quota_out.value__)); | 553 | ntohl (cim->quota_out.value__)); |
554 | n = neighbour_find (h, &cim->id); | 554 | n = neighbour_find (h, |
555 | &cim->id); | ||
555 | if (NULL != n) | 556 | if (NULL != n) |
556 | { | 557 | { |
557 | GNUNET_break (0); | 558 | GNUNET_break (0); |
@@ -896,9 +897,9 @@ GNUNET_TRANSPORT_core_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
896 | const struct GNUNET_PeerIdentity *self, | 897 | const struct GNUNET_PeerIdentity *self, |
897 | const struct GNUNET_MQ_MessageHandler *handlers, | 898 | const struct GNUNET_MQ_MessageHandler *handlers, |
898 | void *cls, | 899 | void *cls, |
899 | GNUNET_TRANSPORT_NotifyConnecT nc, | 900 | GNUNET_TRANSPORT_NotifyConnect nc, |
900 | GNUNET_TRANSPORT_NotifyDisconnecT nd, | 901 | GNUNET_TRANSPORT_NotifyDisconnect nd, |
901 | GNUNET_TRANSPORT_NotifyExcessBandwidtH neb) | 902 | GNUNET_TRANSPORT_NotifyExcessBandwidth neb) |
902 | { | 903 | { |
903 | struct GNUNET_TRANSPORT_CoreHandle *h; | 904 | struct GNUNET_TRANSPORT_CoreHandle *h; |
904 | unsigned int i; | 905 | unsigned int i; |