tRemove dummy code - scribo - Email-based phlog generator
(HTM) git clone git://git.z3bra.org/scribo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 0af2788d8a7a65b8628d35e0ef5e31528c807051
(DIR) parent 8c8ef05376c10ddbd4afaff7376a62fbce82e673
(HTM) Author: Willy Goiffon <dev@z3bra.org>
Date: Mon, 7 Sep 2020 17:30:52 +0200
Remove dummy code
Diffstat:
M scribo.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
---
(DIR) diff --git a/scribo.c b/scribo.c
t@@ -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;
t@@ -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);