diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-08-23 01:23:05 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-08-23 01:23:05 +0200 |
commit | 1ae29f146d4335261438256c0dcebfc71b3b6f04 (patch) | |
tree | 1f29fe6433206d01c38f68851a271e3b0b8678c2 | |
parent | 40c43d19bb65542c8406207775def43ee875462d (diff) | |
download | reduced_system_layer-1ae29f146d4335261438256c0dcebfc71b3b6f04.zip |
Fix grammar
-rwxr-xr-x | reduced_system_layer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/reduced_system_layer.c b/reduced_system_layer.c index f81266d..cca1d30 100755 --- a/reduced_system_layer.c +++ b/reduced_system_layer.c @@ -5,7 +5,8 @@ #/ #/ This is a reduced system layer. #/ It allows you to create a window, draw graphics in it, handle -#/ input events. +#/ input events, write samples to audio output, send and receive +#/ UDP packets. #/ #/ ---------------------------------------------------------------- #/ @@ -532,7 +533,7 @@ i64 p_recv(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port, IP p_len = sizeof a6; } - i64 recieved = recvfrom( + i64 received = recvfrom( _sockets[slot].socket, data, size, @@ -541,7 +542,7 @@ i64 p_recv(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port, IP &(socklen_t) {p_len} ); - if (recieved < 0) { + if (received < 0) { if (errno == EAGAIN || errno == EWOULDBLOCK) return 0; @@ -562,7 +563,7 @@ i64 p_recv(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port, IP } } - return recieved; + return received; } i64 p_send(u16 slot, IP_Address address, i64 size, u8 *data, u16 *local_port) { |