diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/protocol.c (renamed from src/common/protocol.cpp) | 8 | ||||
-rw-r--r-- | src/device/protocol_device.c (renamed from src/device/protocol_device.ino) | 0 | ||||
-rw-r--r-- | src/device/udp.c (renamed from src/device/udp.ino) | 0 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/common/protocol.cpp b/src/common/protocol.c index 135be37..43ff6a5 100644 --- a/src/common/protocol.cpp +++ b/src/common/protocol.c @@ -83,8 +83,8 @@ static int push_timestamp(cd_t connection, const char *data) static int push_request(cd_t connection, const char *data) { - return push_tlv_header(connection, REQUEST, sizeof(msg_idx_t)) - | push_bytes(connection, data, sizeof(msg_idx_t)); + return push_tlv_header(connection, REQUEST, sizeof(msg_idx_t)) + | push_bytes(connection, data, sizeof(msg_idx_t)); } static int push_reply(cd_t connection, const char *data) @@ -120,7 +120,7 @@ size_t tlv_count(const struct packet_data * const packet) return ret; } -size_t get_tlvs( const struct packet_data * const data, +size_t get_tlvs( const struct packet_data * const data, struct tlv *buf, size_t buf_size) { @@ -147,7 +147,7 @@ size_t parse_tlv(const char *data, size_t cursor, struct tlv *t) cursor += sizeof(enum tlv_type); t->length += READ_AS(enum tlv_type ,data + cursor); data += sizeof(size_t); - t->data = (void*)data + cursor; + t->data = data + cursor; return data + cursor - begin + 1UL; } diff --git a/src/device/protocol_device.ino b/src/device/protocol_device.c index 22e1be1..22e1be1 100644 --- a/src/device/protocol_device.ino +++ b/src/device/protocol_device.c diff --git a/src/device/udp.ino b/src/device/udp.c index b88f314..b88f314 100644 --- a/src/device/udp.ino +++ b/src/device/udp.c |