diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-24 09:35:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-24 09:35:37 +0000 |
commit | 101f5787ac60dafa175950fb714c6d4cc4906478 (patch) | |
tree | 711c8042c8b22856b0946d0c819a3520498ac274 /src/transport/plugin_transport_wlan.c | |
parent | 6743123dcc6b37dabf2759f384a7f6ad08a08bec (diff) | |
download | gnunet-101f5787ac60dafa175950fb714c6d4cc4906478.tar.gz gnunet-101f5787ac60dafa175950fb714c6d4cc4906478.zip |
- adding return value to mst callback
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index bda17cb90..aed4b2286 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1081,7 +1081,7 @@ wlan_plugin_send (void *cls, | |||
1081 | * @param client pointer to the session this message belongs to | 1081 | * @param client pointer to the session this message belongs to |
1082 | * @param hdr start of the message | 1082 | * @param hdr start of the message |
1083 | */ | 1083 | */ |
1084 | static void | 1084 | static int |
1085 | process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | 1085 | process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) |
1086 | { | 1086 | { |
1087 | struct Plugin *plugin = cls; | 1087 | struct Plugin *plugin = cls; |
@@ -1245,6 +1245,7 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
1245 | (mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress)); | 1245 | (mas->endpoint == NULL) ? 0 : sizeof (struct GNUNET_TRANSPORT_WLAN_MacAddress)); |
1246 | break; | 1246 | break; |
1247 | } | 1247 | } |
1248 | return GNUNET_OK; | ||
1248 | } | 1249 | } |
1249 | #undef NUM_ATS | 1250 | #undef NUM_ATS |
1250 | 1251 | ||
@@ -1256,7 +1257,7 @@ process_data (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) | |||
1256 | * @param client client that send the data (not used) | 1257 | * @param client client that send the data (not used) |
1257 | * @param hdr header of the GNUNET_MessageHeader | 1258 | * @param hdr header of the GNUNET_MessageHeader |
1258 | */ | 1259 | */ |
1259 | static void | 1260 | static int |
1260 | handle_helper_message (void *cls, void *client, | 1261 | handle_helper_message (void *cls, void *client, |
1261 | const struct GNUNET_MessageHeader *hdr) | 1262 | const struct GNUNET_MessageHeader *hdr) |
1262 | { | 1263 | { |
@@ -1358,6 +1359,7 @@ handle_helper_message (void *cls, void *client, | |||
1358 | ntohs (hdr->type), ntohs (hdr->size)); | 1359 | ntohs (hdr->type), ntohs (hdr->size)); |
1359 | break; | 1360 | break; |
1360 | } | 1361 | } |
1362 | return GNUNET_OK; | ||
1361 | } | 1363 | } |
1362 | 1364 | ||
1363 | 1365 | ||