From: Sam James Date: Mon, 15 Nov 2021 05:48:39 +0000 Subject: [PATCH 1/2] Fix implicit declarations --- a/installer.c +++ b/installer.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include --- a/instcheck.c +++ b/instcheck.c @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include --- a/tai_decode.c +++ b/tai_decode.c @@ -1,5 +1,7 @@ #include "tai.h" +#include + static bool isdigit(char ch) { return ch >= '0' && ch <= '9'; --- a/tai_decode.c +++ b/tai_decode.c @@ -2,7 +2,7 @@ #include -static bool isdigit(char ch) +static bool qlogtools_isdigit(char ch) { return ch >= '0' && ch <= '9'; } @@ -12,11 +12,11 @@ tai* tai_decode(const char* str, const char** endptr) static tai t; t.seconds = 0; t.nanoseconds = 0; - while(isdigit(*str)) + while(qlogtools_isdigit(*str)) t.seconds = (t.seconds * 10) + (*str++ - '0'); if(*str == '.') { ++str; - while(isdigit(*str)) + while(qlogtools_isdigit(*str)) t.nanoseconds = (t.nanoseconds * 10) + (*str++ - '0'); } if(endptr) -- 2.33.1