diff options
Diffstat (limited to '02_exercise/shell.c')
-rw-r--r-- | 02_exercise/shell.c | 2 |
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) { |