X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fsptps_speed.c;h=19ac6263ce2b85e1c7c420026ecad8590d91204f;hb=c6a8d235b103195d3a2ccde17168d05409d7b485;hp=e88c81fc9fcd08c164146514cc634b2a56930e1a;hpb=21f0bddfa4dca5fb21c9dc4970ac64fa8fe706e4;p=meshlink diff --git a/src/sptps_speed.c b/src/sptps_speed.c index e88c81fc..19ac6263 100644 --- a/src/sptps_speed.c +++ b/src/sptps_speed.c @@ -29,17 +29,18 @@ // Symbols necessary to link with logger.o bool send_request(void *c, const char *msg, ...) { return false; } +void *mesh; bool send_meta(void *c, const char *msg , int len) { return false; } char *logfilename = NULL; struct timeval now; -static bool send_data(void *handle, uint8_t type, const char *data, size_t len) { +static bool send_data(void *handle, uint8_t type, const void *data, size_t len) { int fd = *(int *)handle; send(fd, data, len, 0); return true; } -static bool receive_record(void *handle, uint8_t type, const char *data, uint16_t len) { +static bool receive_record(void *handle, uint8_t type, const void *data, uint16_t len) { return true; }