From: Nathan Wagner Date: Thu, 5 Jul 2018 07:45:28 +0000 (+0000) Subject: make prove.c compile with additional checks X-Git-Url: https://pd.if.org/git/?p=ctap;a=commitdiff_plain;h=3d8d775d9f3ff3abc2991a670cda8279dd55fb83 make prove.c compile with additional checks --- diff --git a/prove.c b/prove.c index afb5a73..8ff8a64 100644 --- a/prove.c +++ b/prove.c @@ -1,6 +1,9 @@ +#define _POSIX_C_SOURCE 200809L + #include #include #include +#include #include #include #include @@ -53,7 +56,8 @@ int runone(struct testrun *run) { pid_t cpid; FILE *tap; char *line; - size_t nread, len = 0; + ssize_t nread; + size_t len = 0; int written = 0; if (pipe(pipefd) == -1) { @@ -232,7 +236,10 @@ int runone(struct testrun *run) { } void json(struct testrun *total, struct testrun *runs, int nruns) { - + if (total && runs && nruns) { + return; + } + return; } int main(int ac, char *av[]) {