diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-09-27 04:58:42 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-09-27 04:58:42 -0400 |
commit | 0937828352ce4480192d011301a16fa0439c1cd9 (patch) | |
tree | 0818c5ac151752861ef9afa4641bc64a0ccae4a2 /src/main.c | |
parent | bef15f8e1b20aff978b71866b501a4da85881434 (diff) |
Board v1.10
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -18,8 +18,9 @@ int _sock_connect(void *data) int fd = (uintptr_t)data; OSMInitFrame frame = {0}; - memcpy(frame.magic, OSM_MAGIC_INIT, 4); - frame.keylen = 0; + memcpy(frame.header.magic, OSM_MAGIC_INIT, 4); + frame.header.keylen = 0; + frame.header.keytype = OSM_KEYTYPE_NONE; write(fd, &frame, sizeof(frame)); printf("Wrote 1!\n"); |