summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-09-27 04:58:42 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-09-27 04:58:42 -0400
commit0937828352ce4480192d011301a16fa0439c1cd9 (patch)
tree0818c5ac151752861ef9afa4641bc64a0ccae4a2 /src/main.c
parentbef15f8e1b20aff978b71866b501a4da85881434 (diff)
Board v1.10
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 69edfd3..d11eeb2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");