From 6e8a21ed66304aee7c5f88aa9b4fa89a9b7a11f6 Mon Sep 17 00:00:00 2001 From: night0721 Date: Thu, 1 Feb 2024 19:18:52 +0000 Subject: [PATCH] satisfy linter --- history.c | 2 +- rush.c | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/history.c b/history.c index 91b6220..6925ae4 100644 --- a/history.c +++ b/history.c @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include "constants.h" diff --git a/rush.c b/rush.c index c11776a..3663c76 100644 --- a/rush.c +++ b/rush.c @@ -3,9 +3,10 @@ #include #include #include -#include +#include #include #include +#include #include "color.h" #include "constants.h" @@ -13,7 +14,7 @@ #include "commands.h" void quit_sig(int sig) { - return 0; + exit(0); } void change_terminal_attribute(int option) { @@ -93,7 +94,7 @@ char *readline(char **paths) { int buf_len = strlen(buffer); //printf("buflen %i\n", buf_len); if (buf_len > 0) { - printf("\033[%dD", strlen(buffer)); // move cursor to the beginning + printf("\033[%ldD", strlen(buffer)); // move cursor to the beginning printf("\033[K"); // clear line to the right of cursor } // check each character user has input