saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 9b1c25d392ebf25c4890c5455378c1ab4f3b9021
parent 0c5d3c6e83f4f8d5266140037a9b566814dc9b12
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 11 Feb 2018 13:13:40 +0100

documentation: explain the value of READ_BUF_SIZ

+ minor style: line-wrap.

Diffstat:
Msaait.c | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/saait.c b/saait.c @@ -8,6 +8,8 @@ #include <unistd.h> #endif +/* This is the blocksize of my disk, use atleast an equal or higher value and + a multiple of 2 for better performance ((struct stat).st_blksize). */ #define READ_BUF_SIZ 16384 #define LEN(s) (sizeof(s)/sizeof(*s)) @@ -348,7 +350,8 @@ writepage(FILE *fp, const char *filename, struct variable *c, char *s) void usage(void) { - fprintf(stderr, "%s [-c config] [-o outputdir] [-t templatedir] pages...\n", argv0); + fprintf(stderr, "%s [-c config] [-o outputdir] [-t templatedir] " + "pages...\n", argv0); exit(1); } @@ -357,7 +360,8 @@ main(int argc, char *argv[]) { struct block *b; struct variable *c, *v; - char file[PATH_MAX + 1], htmlfile[PATH_MAX + 1], outputfile[PATH_MAX + 1], *p; + char file[PATH_MAX + 1], htmlfile[PATH_MAX + 1]; + char outputfile[PATH_MAX + 1], *p; size_t i, j, k; int r;