summaryrefslogtreecommitdiffstats
path: root/02_exercise/shell.c
diff options
context:
space:
mode:
authorStefan Zabka <zabkaste@hu-berlin.de>2020-05-21 12:37:46 +0200
committerStefan Zabka <zabkaste@hu-berlin.de>2020-05-21 12:37:46 +0200
commitdd4f3ec7551fddb88c5d6b96ed1aff3521c937ca (patch)
tree97e603f80bde82372e0a1cbb4b70b8bfdace8740 /02_exercise/shell.c
parentf117343477e596937bdfcf0ddce447c0d127b9cf (diff)
downloadbetriebssysteme-dd4f3ec7551fddb88c5d6b96ed1aff3521c937ca.tar.gz
betriebssysteme-dd4f3ec7551fddb88c5d6b96ed1aff3521c937ca.zip
Added warning and cleaned them up
Diffstat (limited to '02_exercise/shell.c')
-rw-r--r--02_exercise/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/02_exercise/shell.c b/02_exercise/shell.c
index d155a58..46b169a 100644
--- a/02_exercise/shell.c
+++ b/02_exercise/shell.c
@@ -27,7 +27,7 @@ int main(void) {
while (true) {
char *command = NULL;
size_t cap = 0;
- size_t length = 0;
+ __ssize_t length = 0;
printf("%s > ", prompt);
if ((length = getline(&command, &cap, stdin)) < 0) {