diff options
Diffstat (limited to 'toxav/bwcontroler.c')
-rw-r--r-- | toxav/bwcontroler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/bwcontroler.c b/toxav/bwcontroler.c index 2c468ce3..a4328045 100644 --- a/toxav/bwcontroler.c +++ b/toxav/bwcontroler.c | |||
@@ -200,7 +200,7 @@ int on_update (BWControler *bwc, struct BWCMessage *msg) | |||
200 | int bwc_handle_data(Messenger* m, uint32_t friendnumber, const uint8_t* data, uint16_t length, void* object) | 200 | int bwc_handle_data(Messenger* m, uint32_t friendnumber, const uint8_t* data, uint16_t length, void* object) |
201 | { | 201 | { |
202 | if (length != sizeof(struct BWCMessage)) | 202 | if (length != sizeof(struct BWCMessage)) |
203 | return; | 203 | return -1; |
204 | 204 | ||
205 | /* NOTE the data is mutable */ | 205 | /* NOTE the data is mutable */ |
206 | return on_update(object, (struct BWCMessage *) data); | 206 | return on_update(object, (struct BWCMessage *) data); |