diff options
author | 2019-05-29 14:33:16 +0300 | |
---|---|---|
committer | 2019-05-29 14:33:16 +0300 | |
commit | 227a0e12ee262dbabdd8d988fec194273cf90029 (patch) | |
tree | 1e63cd26ac494cc453db5ebc0a120e0b48a562d7 /src/common/tlv.c | |
parent | a23ca7681b3dad7b63fd7b38e05fdfc2e0d75b33 (diff) | |
download | usurpation-227a0e12ee262dbabdd8d988fec194273cf90029.tar.gz usurpation-227a0e12ee262dbabdd8d988fec194273cf90029.tar.bz2 usurpation-227a0e12ee262dbabdd8d988fec194273cf90029.zip |
Tweaked function declarations and build files to make it build.
Signed-off-by: Ramūnas Mažeikis <ramunasnezinomas@gmail.com>
Diffstat (limited to 'src/common/tlv.c')
-rw-r--r-- | src/common/tlv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/tlv.c b/src/common/tlv.c index 748d3fb..c25f008 100644 --- a/src/common/tlv.c +++ b/src/common/tlv.c @@ -28,7 +28,6 @@ #include <string.h> #include <time.h> #include "tlv.h" -#include "tlv_private.h" #include "net.h" #include "utils.h" @@ -41,7 +40,7 @@ int tlv_get(struct tlv_parser *parser, struct tlv *ret) } else if (parser -> offset == parser->size) { retval = END_OF_PACKET; } else { - ret->type = memcpy(&ret->type, parser->data + parser->offset, sizeof(ret->type)); + memcpy(&ret->type, parser->data + parser->offset, sizeof(ret->type)); parser->size += sizeof(ret->type); ret->length = memcpy(&ret->length, parser->data + parser->offset, sizeof(ret->length)); parser->offset += sizeof(ret->length); @@ -130,4 +129,4 @@ int tlv_push_tlv(struct tlv *t, const struct tlv *other) } return ret; -}
\ No newline at end of file +} |