From dc70c4452ddfb6b9c7c9d69515ef5b29bcbe3af5 Mon Sep 17 00:00:00 2001 From: lomna Date: Fri, 7 Jul 2023 21:23:35 +0530 Subject: [PATCH] using stdbool 1. Using stdbool.h for bool 2. Changed formatting for output on command complete/fail. --- src/tasks.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tasks.c b/src/tasks.c index e88d733..2fe69a2 100644 --- a/src/tasks.c +++ b/src/tasks.c @@ -3,13 +3,12 @@ #include #include #include +#include #include "sha1.h" #include "lookup_list.h" #define MAX_TASKS 5 -typedef enum {false, true} bool; - typedef struct TASKS_str_linked_list{ char *data; struct TASKS_str_linked_list *next; @@ -289,9 +288,9 @@ void TASKS_do_tasks_ifchange(char *filename){ perror(cmd); if(r_code != EXIT_SUCCESS) - printf("[✗] FAILED COMMAND : %s\n[✗] C system() function return value : %d\n", cmd, r_code); + printf("[✗] FAILED COMMAND : %s ; C system() function return value : %d\n", cmd, r_code); else - printf("[✔] COMPLETED COMMAND : %s\n[✔] C system() function return value : %d\n", cmd, r_code); + printf("[✔] COMPLETED COMMAND : %s ; C system() function return value : %d\n", cmd, r_code); cll = cll->next; } printf("\n");