X-Git-Url: https://pd.if.org/git/?p=ctap;a=blobdiff_plain;f=prove.c;h=ded9440df3d0efc2dfb7545147c183107c552e45;hp=afb5a73e2c5a16742562a00e1697f413c2582d07;hb=HEAD;hpb=fdcc11b029058dd4555a8c04a1cac4f6ca58bc81 diff --git a/prove.c b/prove.c index afb5a73..ded9440 100644 --- a/prove.c +++ b/prove.c @@ -1,6 +1,9 @@ +#define _POSIX_C_SOURCE 200809L + #include #include #include +#include #include #include #include @@ -52,8 +55,9 @@ int runone(struct testrun *run) { int pipefd[2]; pid_t cpid; FILE *tap; - char *line; - size_t nread, len = 0; + char *line = 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[]) {