aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-wlan-dummy.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-24 09:35:37 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-24 09:35:37 +0000
commit101f5787ac60dafa175950fb714c6d4cc4906478 (patch)
tree711c8042c8b22856b0946d0c819a3520498ac274 /src/transport/gnunet-helper-transport-wlan-dummy.c
parent6743123dcc6b37dabf2759f384a7f6ad08a08bec (diff)
downloadgnunet-101f5787ac60dafa175950fb714c6d4cc4906478.tar.gz
gnunet-101f5787ac60dafa175950fb714c6d4cc4906478.zip
- adding return value to mst callback
Diffstat (limited to 'src/transport/gnunet-helper-transport-wlan-dummy.c')
-rw-r--r--src/transport/gnunet-helper-transport-wlan-dummy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/transport/gnunet-helper-transport-wlan-dummy.c b/src/transport/gnunet-helper-transport-wlan-dummy.c
index 9d82fccf3..a7015ac2c 100644
--- a/src/transport/gnunet-helper-transport-wlan-dummy.c
+++ b/src/transport/gnunet-helper-transport-wlan-dummy.c
@@ -119,7 +119,7 @@ send_mac_to_plugin (char *buffer, struct GNUNET_TRANSPORT_WLAN_MacAddress *mac)
119 * @param client unused 119 * @param client unused
120 * @param hdr inbound message from the FIFO 120 * @param hdr inbound message from the FIFO
121 */ 121 */
122static void 122static int
123stdin_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) 123stdin_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
124{ 124{
125 struct SendBuffer *write_pout = cls; 125 struct SendBuffer *write_pout = cls;
@@ -154,6 +154,7 @@ stdin_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
154 &in[1], 154 &in[1],
155 payload_size); 155 payload_size);
156 write_pout->size += payload_size; 156 write_pout->size += payload_size;
157 return GNUNET_OK;
157} 158}
158 159
159 160
@@ -164,7 +165,7 @@ stdin_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
164 * @param client unused 165 * @param client unused
165 * @param hdr the message we received to copy to the buffer 166 * @param hdr the message we received to copy to the buffer
166 */ 167 */
167static void 168static int
168file_in_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr) 169file_in_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
169{ 170{
170 struct SendBuffer *write_std = cls; 171 struct SendBuffer *write_std = cls;
@@ -178,6 +179,7 @@ file_in_send (void *cls, void *client, const struct GNUNET_MessageHeader *hdr)
178 } 179 }
179 memcpy (write_std->buf + write_std->size, hdr, sendsize); 180 memcpy (write_std->buf + write_std->size, hdr, sendsize);
180 write_std->size += sendsize; 181 write_std->size += sendsize;
182 return GNUNET_OK;
181} 183}
182 184
183 185