From b429082c2bf80a7a458beadb911fce9a4794747e Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Tue, 12 Jan 2021 11:52:01 +0100 Subject: [PATCH] Cleanup dead/useless code --- day04/ex1-c.c | 14 -------------- day04/ex2-c.c | 14 -------------- day10/ex1-c.c | 2 +- day10/ex2-c.c | 2 +- 4 files changed, 2 insertions(+), 30 deletions(-) diff --git a/day04/ex1-c.c b/day04/ex1-c.c index e2b82dd..5c5f79b 100644 --- a/day04/ex1-c.c +++ b/day04/ex1-c.c @@ -103,20 +103,6 @@ int valid_passport() return valid; } -char *my_getkeyZOBI(str) /* search string before ':' */ - char *str; -{ - char *p=str; - - while (*str++ == ' ') /* skip spaces */ - ; - p=str; - while (*p && *p++ != ':') /* skip spaces */ - ; - *p='\0'; - return my_strlen(str) ? str: NULL; -} - int main(ac, av) char **av; { diff --git a/day04/ex2-c.c b/day04/ex2-c.c index 9259e78..94c769b 100644 --- a/day04/ex2-c.c +++ b/day04/ex2-c.c @@ -204,20 +204,6 @@ int valid_passport() return valid; } -char *my_getkeyZOBI(str) /* search string before ':' */ - char *str; -{ - char *p=str; - - while (*str++ == ' ') /* skip spaces */ - ; - p=str; - while (*p && *p++ != ':') /* skip spaces */ - ; - *p='\0'; - return my_strlen(str) ? str: NULL; -} - int main(ac, av) char **av; { diff --git a/day10/ex1-c.c b/day10/ex1-c.c index 54a00dd..bc5e8a5 100644 --- a/day10/ex1-c.c +++ b/day10/ex1-c.c @@ -59,7 +59,7 @@ void print_list(list) printf("[%u] %llu\n", i, *(ptr+i)); } -static struct list *add_val(list, val) +struct list *add_val(list, val) struct list *list; unsigned long long val; { diff --git a/day10/ex2-c.c b/day10/ex2-c.c index 50925c5..7cf3fbd 100644 --- a/day10/ex2-c.c +++ b/day10/ex2-c.c @@ -59,7 +59,7 @@ void print_list(list) printf("[%u] %llu\n", i, *(ptr+i)); } -static struct list *add_val(list, val) +struct list *add_val(list, val) struct list *list; unsigned long long val; {