scribo

Email-based phlog generator
git clone git://git.z3bra.org/scribo.git
Log | Files | Refs

commit 0af2788d8a7a65b8628d35e0ef5e31528c807051
parent 8c8ef05376c10ddbd4afaff7376a62fbce82e673
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  7 Sep 2020 17:30:52 +0200

Remove dummy code

Diffstat:
Mscribo.c | 12+-----------
1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/scribo.c b/scribo.c @@ -71,8 +71,7 @@ int main(int argc, char *argv[]) { FILE *in = stdin, *out = stdout; - char *argv0, *infile, *outfile, buf[BUFSIZ]; - size_t len; + char *argv0, *infile, *outfile; struct headers headers; infile = NULL; @@ -105,15 +104,6 @@ main(int argc, char *argv[]) if (parseheaders(in, &headers) < 0) return -1; - struct hdr *p; - SLIST_FOREACH(p, &headers, entries) - printf("%s: %s\n", p->name, p->body); - - return 0; - - while ((len = fread(buf, 1, BUFSIZ, in))) - fwrite(buf, 1, len, out); - fclose(in); fclose(out);