diff options
author | turret <turret@duck.com> | 2023-11-19 19:13:40 -0600 |
---|---|---|
committer | turret <turret@duck.com> | 2023-11-19 19:13:40 -0600 |
commit | 40bff7788865b519b79b1ee7eb9851914010ffb4 (patch) | |
tree | b11af475d4eb933acb2d610c555d6715f76def4e /net | |
parent | a8b2282eb88f24c3c5f461e1557fa2cf76ebc251 (diff) | |
download | discord-bot-skeleton-40bff7788865b519b79b1ee7eb9851914010ffb4.tar.gz discord-bot-skeleton-40bff7788865b519b79b1ee7eb9851914010ffb4.tar.bz2 discord-bot-skeleton-40bff7788865b519b79b1ee7eb9851914010ffb4.zip |
misc: minor bugs and comments
sprinkle a little bit of commenting throughout the codebase. hopefully
i dont regret what i've written
- clone: bottom of stack is passed through
- print: write newline at end of message
- initcall: functions return void type
very basic net startup. hopefully i dont regret implementing the
websocket protocol myself in a language as holy as C.
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,2 +1,18 @@ +#include <unistd.h> + +#include <init.h> +#include <log.h> #include <subsys.h> +int net_subsystem(void) +{ + print(LOG_NOTICE "net: starting net subsystem"); + usleep(10000); // do net stuff + return 0; +} + +void net_initcall() +{ + start_subsystem(net_subsystem); +} +l1_initcall(net_initcall); |