diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-25 16:31:23 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-25 16:31:23 +0200 |
commit | afa10fa556585d965e3a7d46c2fd5436d29cf3c6 (patch) | |
tree | 358191a988d0d23449d6a0381d3c1016048424f4 /shared/bin.c | |
parent | 9cd83d662849fe72c83038a018107d9bbf5c2398 (diff) |
`make format`
Diffstat (limited to 'shared/bin.c')
-rw-r--r-- | shared/bin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/bin.c b/shared/bin.c index fc6e14b..44c2e94 100644 --- a/shared/bin.c +++ b/shared/bin.c @@ -1,5 +1,5 @@ -#include <stdlib.h> #include <memory.h> +#include <stdlib.h> #include "bin.h" @@ -65,8 +65,8 @@ uint32_t w2_bin_ntoh32(uint32_t n32) { return w2_bin_hton32(n32); } uint16_t w2_bin_ntoh16(uint16_t n16) { return w2_bin_hton16(n16); } w2_s_bin *w2_bin_s_alloc(uint16_t bytes, uint8_t *data) { - w2_s_bin* temp = malloc(sizeof(w2_s_bin) + sizeof(uint8_t) * bytes); - temp->bytes = bytes; + w2_s_bin *temp = malloc(sizeof(w2_s_bin) + sizeof(uint8_t) * bytes); + temp->bytes = bytes; memcpy(&temp->data, data, bytes); return temp; } |