1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-21 20:40:05 +00:00

minor refactoring

- removed unused alloca.h header in lsocket.c
- fixed type cast warning in sterm.c
This commit is contained in:
CPunch 2022-03-14 01:01:47 -05:00
parent 7a000c1caa
commit 29129923b3
3 changed files with 3 additions and 4 deletions

View File

@ -26,7 +26,8 @@
"limits": "c", "limits": "c",
"*.in": "cpp", "*.in": "cpp",
"lerror.h": "c", "lerror.h": "c",
"stdbool.h": "c" "stdbool.h": "c",
"alloca.h": "c"
}, },
"cSpell.words": [ "cSpell.words": [
"cnc's", "cnc's",

View File

@ -1,5 +1,3 @@
#include <alloca.h>
#include "lerror.h" #include "lerror.h"
#include "lmem.h" #include "lmem.h"
#include "lpolllist.h" #include "lpolllist.h"

View File

@ -81,7 +81,7 @@ char shellT_getch(void) {
int r; int r;
char in; char in;
if ((r = shellT_readRawInput(&in, 1)) > 0) { if ((r = shellT_readRawInput((uint8_t*)&in, 1)) > 0) {
return in; return in;
} else { } else {
return r; return r;