From 29129923b378783185ea34863ac5c6a4d329c438 Mon Sep 17 00:00:00 2001 From: CPunch Date: Mon, 14 Mar 2022 01:01:47 -0500 Subject: [PATCH] minor refactoring - removed unused alloca.h header in lsocket.c - fixed type cast warning in sterm.c --- .vscode/settings.json | 3 ++- lib/src/lsocket.c | 2 -- shell/src/sterm.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index dd9b75e..72bc948 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -26,7 +26,8 @@ "limits": "c", "*.in": "cpp", "lerror.h": "c", - "stdbool.h": "c" + "stdbool.h": "c", + "alloca.h": "c" }, "cSpell.words": [ "cnc's", diff --git a/lib/src/lsocket.c b/lib/src/lsocket.c index f944030..f0ad78e 100644 --- a/lib/src/lsocket.c +++ b/lib/src/lsocket.c @@ -1,5 +1,3 @@ -#include - #include "lerror.h" #include "lmem.h" #include "lpolllist.h" diff --git a/shell/src/sterm.c b/shell/src/sterm.c index 42740e9..5a56940 100644 --- a/shell/src/sterm.c +++ b/shell/src/sterm.c @@ -81,7 +81,7 @@ char shellT_getch(void) { int r; char in; - if ((r = shellT_readRawInput(&in, 1)) > 0) { + if ((r = shellT_readRawInput((uint8_t*)&in, 1)) > 0) { return in; } else { return r;